diff options
author | Jim Evins <evins@snaught.com> | 2009-10-24 07:59:11 -0400 |
---|---|---|
committer | Jim Evins <evins@snaught.com> | 2009-10-24 07:59:11 -0400 |
commit | b69e6e688733168b847f4c0785f75e21b5f77dfd (patch) | |
tree | 41447671544422e83c668fd1ea8e597a525e049d /src/font-util.c | |
parent | b0a92a3f0b9855585fb7fe856483d2e8cece64f7 (diff) |
Use GConf to store font history
glFontHistoryModel now front-ends GConf to store font history between
sessions. Also, don't store default font family when creating a blank
label text object.
Diffstat (limited to 'src/font-util.c')
-rw-r--r-- | src/font-util.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/font-util.c b/src/font-util.c index e4cd2e0..5c2391b 100644 --- a/src/font-util.c +++ b/src/font-util.c @@ -185,6 +185,25 @@ gl_font_util_validate_family (const gchar *family) } +/****************************************************************************/ +/* Test if font is installed. */ +/****************************************************************************/ +gboolean +gl_font_util_is_family_installed (const gchar *family) +{ + const GList *installed_families; + GList *p; + + installed_families = gl_font_util_get_all_families (); + + p = g_list_find_custom ((GList *)installed_families, + family, + (GCompareFunc)g_utf8_collate); + + return (p != NULL); +} + + /* * Local Variables: -- emacs |