Fix parsing of some semibold font styles on Haiku
* src/haiku_font_support.cc (font_style_to_flags): Accept "Semibold" to mean SemiBold as well. Reported by augiedoggie <augiedoggie@users.noreply.github.com>.
This commit is contained in:
parent
5129e713b0
commit
0b286ea45a
1 changed files with 3 additions and 1 deletions
|
@ -220,7 +220,9 @@ font_style_to_flags (char *st, struct haiku_font_pattern *pattern)
|
|||
if (pattern->weight == -1)
|
||||
pattern->weight = HAIKU_REGULAR;
|
||||
}
|
||||
else if (token && !strcmp (token, "SemiBold"))
|
||||
else if (token && (!strcmp (token, "SemiBold")
|
||||
/* Likewise, this was reported by a user. */
|
||||
|| !strcmp (token, "Semibold")))
|
||||
pattern->weight = HAIKU_SEMI_BOLD;
|
||||
else if (token && !strcmp (token, "Bold"))
|
||||
pattern->weight = HAIKU_BOLD;
|
||||
|
|
Loading…
Add table
Reference in a new issue