summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-04-06 19:45:04 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-04-06 19:45:04 -0400
commitcaabe183c7747d7486695071ab592e677bbdce25 (patch)
tree5ed1c7a510b18a3286a458bd8dd6a6a20b71bf6d /pango/pango-context.c
parent1e990af007255d1137ec76bd86658198d73994c6 (diff)
downloadpango-caabe183c7747d7486695071ab592e677bbdce25.tar.gz
Allow font_family=NULL in load_font() and load_fontset() methods
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 6c40a295..0b70f596 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -287,7 +287,6 @@ pango_context_load_font (PangoContext *context,
const PangoFontDescription *desc)
{
g_return_val_if_fail (context != NULL, NULL);
- g_return_val_if_fail (pango_font_description_get_family (desc) != NULL, NULL);
return pango_font_map_load_font (context->font_map, context, desc);
}
@@ -306,11 +305,9 @@ pango_context_load_font (PangoContext *context,
PangoFontset *
pango_context_load_fontset (PangoContext *context,
const PangoFontDescription *desc,
- PangoLanguage *language)
+ PangoLanguage *language)
{
g_return_val_if_fail (context != NULL, NULL);
- g_return_val_if_fail (pango_font_description_get_family (desc) != NULL, NULL);
- g_return_val_if_fail (pango_font_description_get_size (desc) != 0, NULL);
return pango_font_map_load_fontset (context->font_map, context, desc, language);
}