[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 0b286ea45a: Fix parsing of some semibold font styles on Haiku
From: |
Po Lu |
Subject: |
master 0b286ea45a: Fix parsing of some semibold font styles on Haiku |
Date: |
Tue, 15 Feb 2022 02:31:18 -0500 (EST) |
branch: master
commit 0b286ea45a0f46506371058c9f12c36a3573f817
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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>.
---
src/haiku_font_support.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/haiku_font_support.cc b/src/haiku_font_support.cc
index b92373b59e..3930cd965f 100644
--- a/src/haiku_font_support.cc
+++ b/src/haiku_font_support.cc
@@ -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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 0b286ea45a: Fix parsing of some semibold font styles on Haiku,
Po Lu <=