Exclude ``regular'' from font adstyle
* src/sfntfont.c (sfnt_parse_style): Disregard tokens matching Regular entirely.
This commit is contained in:
parent
dfaaedfba8
commit
3ef5f10b19
1 changed files with 6 additions and 0 deletions
|
@ -468,6 +468,12 @@ sfnt_parse_style (Lisp_Object style_name, struct sfnt_font_desc *desc)
|
|||
{
|
||||
style = NULL;
|
||||
|
||||
if (!strcmp (single, "regular"))
|
||||
/* ``Regular'' within a font family can represent either the
|
||||
weight, slant or width of the font. Leave each value as
|
||||
its default, but never append it to the adstyle. */
|
||||
goto next;
|
||||
|
||||
if (desc->weight == 80)
|
||||
{
|
||||
/* Weight hasn't been found yet. Scan through the weight
|
||||
|
|
Loading…
Add table
Reference in a new issue