summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
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);
}