From 6a1420c22bb1365bac94cc979053b558ba328796 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 25 Jul 2014 18:24:32 -0400 Subject: Add PANGO_WEIGHT_SEMILIGHT Part of Bug 733764 - Support more / free font weights --- pango/pangofc-fontmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pango/pangofc-fontmap.c') diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index a4053f71..06ddca0d 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -2063,7 +2063,9 @@ pango_fc_convert_weight_to_pango (int fc_weight) return PANGO_WEIGHT_THIN; else if (fc_weight <= (FC_WEIGHT_EXTRALIGHT + FC_WEIGHT_LIGHT) / 2) return PANGO_WEIGHT_ULTRALIGHT; - else if (fc_weight <= (FC_WEIGHT_LIGHT + FC_WEIGHT_BOOK) / 2) + else if (fc_weight <= (FC_WEIGHT_LIGHT + FC_WEIGHT_DEMILIGHT) / 2) + return PANGO_WEIGHT_SEMILIGHT; + else if (fc_weight <= (FC_WEIGHT_DEMILIGHT + FC_WEIGHT_BOOK) / 2) return PANGO_WEIGHT_LIGHT; else if (fc_weight <= (FC_WEIGHT_BOOK + FC_WEIGHT_REGULAR) / 2) return PANGO_WEIGHT_BOOK; -- cgit v1.2.1