summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-17 13:12:29 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-17 13:12:29 -0400
commita27e5867f2f56026b267e38779b9687411a7c6e0 (patch)
tree4ace4adce5b3ad08df556a5f68f3053db0947460 /pango
parent989d86820f72e532acd9f75dc95c1ec00b47bce2 (diff)
downloadpango-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.c4
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