summaryrefslogtreecommitdiff
path: root/pango/pangoft2-fontmap.c
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2001-12-04 14:47:23 +0000
committerSven Neumann <neo@src.gnome.org>2001-12-04 14:47:23 +0000
commita40f4c0e485189eee88c65b798eb30dd762a9f84 (patch)
treeda42802df05383176355e1043ca40628f5415056 /pango/pangoft2-fontmap.c
parent914c747c3a9c3d9f989d46a97abb289e88a0e8dc (diff)
downloadpango-a40f4c0e485189eee88c65b798eb30dd762a9f84.tar.gz
set n_families to -1 (uninitialized). (pango_ft2_font_map_list_families):
2001-12-04 Sven Neumann <sven@gimp.org> * pango/pangoft2-fontmap.c (pango_ft2_font_map_init): set n_families to -1 (uninitialized). (pango_ft2_font_map_list_families): set n_faces to -1 (uninitialized). This makes list_families and list_faces work again for PangoFT2.
Diffstat (limited to 'pango/pangoft2-fontmap.c')
-rw-r--r--pango/pangoft2-fontmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c
index e472a08d..efe53442 100644
--- a/pango/pangoft2-fontmap.c
+++ b/pango/pangoft2-fontmap.c
@@ -254,6 +254,7 @@ pango_ft2_pattern_equal (MiniXftPattern *pattern1,
static void
pango_ft2_font_map_init (PangoFT2FontMap *ft2fontmap)
{
+ ft2fontmap->n_families = -1;
ft2fontmap->fonts =
g_hash_table_new ((GHashFunc)pango_ft2_pattern_hash,
@@ -402,6 +403,7 @@ pango_ft2_font_map_list_families (PangoFontMap *fontmap,
ft2fontmap->families[i] = g_object_new (PANGO_FT2_TYPE_FAMILY, NULL);
ft2fontmap->families[i]->family_name = g_strdup (s);
ft2fontmap->families[i]->fontmap = ft2fontmap;
+ ft2fontmap->families[i]->n_faces = -1;
}
MiniXftFontSetDestroy (fontset);