summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2001-10-03 18:28:02 +0000
committerSven Neumann <neo@src.gnome.org>2001-10-03 18:28:02 +0000
commitfcb2ec7803e96f6dc0f859cebc004dcc75584c89 (patch)
treebb75c469c3c71d22580e71a41df6fc8372da7c9c /pango/fonts.c
parent5c3dee45a584a81d800ffc8291b9169af6d790c0 (diff)
downloadpango-fcb2ec7803e96f6dc0f859cebc004dcc75584c89.tar.gz
don't include family name if PANGO_FONT_MASK_FAMILY is not set.
2001-10-03 Sven Neumann <sven@gimp.org> * pango/fonts.c (pango_font_description_to_string): don't include family name if PANGO_FONT_MASK_FAMILY is not set. * pango/pangoft2-fontmap.c: make it compile with DEBUGGING being defined.
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index 1586b4c4..4ace0a19 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -910,7 +910,7 @@ pango_font_description_to_string (const PangoFontDescription *desc)
GString *result = g_string_new (NULL);
char *str;
- if (desc->family_name)
+ if (desc->family_name && desc->mask & PANGO_FONT_MASK_FAMILY)
{
const char *p;
size_t wordlen;