[PATCH 3/5] dwrite: Use properly capitalized weight names for constructed face names.

Nikolay Sivov nsivov at codeweavers.com
Thu Mar 11 03:41:22 CST 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/dwrite/font.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index 4252a3698ba..1a54d2300b1 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -3653,6 +3653,10 @@ static BOOL is_known_weight_value(DWRITE_FONT_WEIGHT weight, WCHAR *nameW)
     static const WCHAR extrablackW[] = {'E','x','t','r','a',' ','B','l','a','c','k',0};
     static const WCHAR extraboldW[] = {'E','x','t','r','a',' ','B','o','l','d',0};
     static const WCHAR demiboldW[] = {'D','e','m','i',' ','B','o','l','d',0};
+    static const WCHAR thinW[] = {'T','h','i','n',0};
+    static const WCHAR lightW[] = {'L','i','g','h','t',0};
+    static const WCHAR mediumW[] = {'M','e','d','i','u','m',0};
+    static const WCHAR blackW[] = {'B','l','a','c','k',0};
     const struct knownweight_entry *ptr;
 
     static const struct knownweight_entry knownweights[] = {
-- 
2.30.1




More information about the wine-devel mailing list