aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-09-13 13:42:29 +0800
committerPo Lu2023-09-13 13:42:29 +0800
commit3ef5f10b1904c84e606bbe5baa8f7cf2ed8b6899 (patch)
tree8726ee6d344bebb566cd45306321dc4823067fe9 /src
parentdfaaedfba8c9b34143fb793a2f6d32b3ae47c7e7 (diff)
downloademacs-3ef5f10b1904c84e606bbe5baa8f7cf2ed8b6899.tar.gz
emacs-3ef5f10b1904c84e606bbe5baa8f7cf2ed8b6899.zip
Exclude ``regular'' from font adstyle
* src/sfntfont.c (sfnt_parse_style): Disregard tokens matching Regular entirely.
Diffstat (limited to 'src')
-rw-r--r--src/sfntfont.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sfntfont.c b/src/sfntfont.c
index fb0a2546864..d6dfa8b6f0d 100644
--- a/src/sfntfont.c
+++ b/src/sfntfont.c
@@ -468,6 +468,12 @@ sfnt_parse_style (Lisp_Object style_name, struct sfnt_font_desc *desc)
468 { 468 {
469 style = NULL; 469 style = NULL;
470 470
471 if (!strcmp (single, "regular"))
472 /* ``Regular'' within a font family can represent either the
473 weight, slant or width of the font. Leave each value as
474 its default, but never append it to the adstyle. */
475 goto next;
476
471 if (desc->weight == 80) 477 if (desc->weight == 80)
472 { 478 {
473 /* Weight hasn't been found yet. Scan through the weight 479 /* Weight hasn't been found yet. Scan through the weight