[pango/pango2: 41/44] coretext: Fix font creation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 41/44] coretext: Fix font creation
- Date: Thu, 16 Jun 2022 00:50:34 +0000 (UTC)
commit 1b999b8c59e1d5cefad9aa7d465ad067ea74cb89
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 15 15:46:25 2022 -0400
coretext: Fix font creation
pango/pangocoretext-fontmap.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index 71bf5230..3f8a87fd 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -343,6 +343,9 @@ face_from_ct_font_descriptor (CTFontDescriptorRef desc)
name = ct_font_descriptor_get_style_name (desc);
description = font_description_from_ct_font_descriptor (desc);
+ pango_font_description_unset_fields (description, PANGO_FONT_MASK_VARIANT |
+ PANGO_FONT_MASK_SIZE |
+ PANGO_FONT_MASK_GRAVITY);
hb_face_make_immutable (hb_face);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]