diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-17 13:12:29 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-17 13:12:29 -0400 |
commit | a27e5867f2f56026b267e38779b9687411a7c6e0 (patch) | |
tree | 4ace4adce5b3ad08df556a5f68f3053db0947460 /pango | |
parent | 989d86820f72e532acd9f75dc95c1ec00b47bce2 (diff) | |
download | pango-a27e5867f2f56026b267e38779b9687411a7c6e0.tar.gz |
fc: Return a coverage level
We were just returning a boolean, leaving
it up to luck to match coverage level enum values.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangofc-fontmap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 20ef6c04..27abb29e 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -2004,7 +2004,9 @@ pango_fc_coverage_real_get (PangoCoverage *coverage, { PangoFcCoverage *fc_coverage = (PangoFcCoverage*)coverage; - return FcCharSetHasChar (fc_coverage->charset, index); + return FcCharSetHasChar (fc_coverage->charset, index) + ? PANGO_COVERAGE_EXACT + : PANGO_COVERAGE_NONE; } static void |