/* * gppfont and gppfile cannot have local defaults, since the very * format of a Filename or FontSpec is platform-dependent. So the * platform-dependent functions MUST return some sort of value. */ static void gppfont(void *handle, const char *name, Conf *conf, int primary) { FontSpec *result = read_setting_fontspec(handle, name); if (!result) result = platform_default_fontspec(name); conf_set_fontspec(conf, primary, result); fontspec_free(result); }
/* * gppfont and gppfile cannot have local defaults, since the very * format of a Filename or Font is platform-dependent. So the * platform-dependent functions MUST return some sort of value. */ static void gppfont(void *handle, const char *name, FontSpec *result) { if (!read_setting_fontspec(handle, name, result)) *result = platform_default_fontspec(name); }