diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-11 18:10:25 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-11 22:04:18 -0400 |
commit | 3e65090bef37843dc0d85c10cb2864925c2fb718 (patch) | |
tree | bb321b56b4b4da279faeebee5557cf427c131b73 /pango/pangofc-fontmap.c | |
parent | a5409723af5d4b71f6d82288310e0e99020ad7c2 (diff) | |
download | pango-3e65090bef37843dc0d85c10cb2864925c2fb718.tar.gz |
Reimplement PangoCoverage on top of hb_set_t
This drops the language dependency and
coverage levels, both of which are not
used in pango.
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r-- | pango/pangofc-fontmap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index e88ac431..d90e78c3 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -1985,9 +1985,6 @@ _pango_fc_font_map_get_coverage (PangoFcFontMap *fcfontmap, PangoFcFontFaceData *data; FcCharSet *charset; - if (G_UNLIKELY (!fcfont->font_pattern)) - return NULL; - data = pango_fc_font_map_get_font_face_data (fcfontmap, fcfont->font_pattern); if (G_UNLIKELY (!data)) return NULL; @@ -1999,7 +1996,7 @@ _pango_fc_font_map_get_coverage (PangoFcFontMap *fcfontmap, * doesn't require loading the font */ if (FcPatternGetCharSet (fcfont->font_pattern, FC_CHARSET, 0, &charset) != FcResultMatch) - return NULL; + return NULL; data->coverage = _pango_fc_font_map_fc_to_coverage (charset); } |