diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-10-05 11:44:32 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-10-05 11:44:32 +0000 |
commit | 18dc9c0d25639481fc6b2533790cea485da265a2 (patch) | |
tree | ce6157808d36b524e6c846247b2def8d5b81bb72 /pango/pangocoretext-fontmap.c | |
parent | b02a13ffae3c2ead604bb2786a805f036a5a0f49 (diff) | |
parent | fb33863258a3c0fa9e981374dffbfce333c0e50f (diff) | |
download | pango-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
Diffstat (limited to 'pango/pangocoretext-fontmap.c')
-rw-r--r-- | pango/pangocoretext-fontmap.c | 2 |
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 { |