[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b3821357696: Set adstyle within sfnt font objects
From: |
Po Lu |
Subject: |
master b3821357696: Set adstyle within sfnt font objects |
Date: |
Fri, 9 Feb 2024 00:16:12 -0500 (EST) |
branch: master
commit b3821357696d44e3f553af14c209a21e69187c32
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Set adstyle within sfnt font objects
* src/sfntfont.c (sfntfont_open): Don't incorrectly clear
desc->adstyle.
---
src/sfntfont.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/sfntfont.c b/src/sfntfont.c
index 860fc446184..3be770f650e 100644
--- a/src/sfntfont.c
+++ b/src/sfntfont.c
@@ -3308,7 +3308,7 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
ASET (font_object, FONT_TYPE_INDEX, sfnt_vendor_name);
ASET (font_object, FONT_FOUNDRY_INDEX, desc->designer);
ASET (font_object, FONT_FAMILY_INDEX, Fintern (desc->family, Qnil));
- ASET (font_object, FONT_ADSTYLE_INDEX, Qnil);
+ ASET (font_object, FONT_ADSTYLE_INDEX, desc->adstyle);
ASET (font_object, FONT_REGISTRY_INDEX,
sfntfont_registry_for_desc (desc));
@@ -3326,8 +3326,6 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
FONT_SET_STYLE (font_object, FONT_SLANT_INDEX,
make_fixnum (desc->slant));
- ASET (font_object, FONT_ADSTYLE_INDEX, Qnil);
-
/* Clear various offsets. */
font_info->font.baseline_offset = 0;
font_info->font.relative_compose = 0;
@@ -3412,7 +3410,7 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
AREF (tem, 3));
FONT_SET_STYLE (font_object, FONT_SLANT_INDEX,
AREF (tem, 4));
- ASET (font_object, FONT_ADSTYLE_INDEX, Qnil);
+ ASET (font_object, FONT_ADSTYLE_INDEX, AREF (tem, 1));
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master b3821357696: Set adstyle within sfnt font objects,
Po Lu <=