summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-05 11:44:32 +0000
committerMatthias Clasen <mclasen@redhat.com>2022-10-05 11:44:32 +0000
commit18dc9c0d25639481fc6b2533790cea485da265a2 (patch)
treece6157808d36b524e6c846247b2def8d5b81bb72
parentb02a13ffae3c2ead604bb2786a805f036a5a0f49 (diff)
parentfb33863258a3c0fa9e981374dffbfce333c0e50f (diff)
downloadpango-18dc9c0d25639481fc6b2533790cea485da265a2.tar.gz
Merge branch 'fix-coretext-pango-weight-out-of-range-conversion' into 'main'
Fixes typo in coretext to pango weight conversion when out of range See merge request GNOME/pango!644
-rw-r--r--pango/pangocoretext-fontmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index e090bfc4..6e59a4f9 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -328,7 +328,7 @@ ct_font_descriptor_get_weight (CTFontDescriptorRef desc)
if (!(value >= ct_weight_min && value <= ct_weight_max))
{
i = value > ct_weight_max ? G_N_ELEMENTS (ct_weight_map) - 1 : 0;
- weight = ct_weight_map[i].ct_weight;
+ weight = ct_weight_map[i].pango_weight;
}
else
{