Nikolay Sivov : dwrite: Add properties for new Unicode 13 scripts.

Alexandre Julliard julliard at winehq.org
Mon Oct 18 16:16:28 CDT 2021


Module: wine
Branch: master
Commit: 992e0a604541caaec2b84a2fa9dd4c9605f6102b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=992e0a604541caaec2b84a2fa9dd4c9605f6102b

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Oct 18 15:55:20 2021 +0300

dwrite: Add properties for new Unicode 13 scripts.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dwrite/analyzer.c | 4 ++++
 dlls/dwrite/scripts.h  | 6 +++++-
 tools/make_unicode     | 5 +++++
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c
index 89c76da0bb9..e8a30a7ae45 100644
--- a/dlls/dwrite/analyzer.c
+++ b/dlls/dwrite/analyzer.c
@@ -198,6 +198,10 @@ static const struct dwritescript_properties dwritescripts_properties[Script_Last
     { /* Hmnp */ { 0x706e6d48, 451,  8, 0x0020, 1, 1, 0, 0, 0, 0, 0 }, { _OT('h','m','n','p') } },
     { /* Nand */ { 0x646e614e, 311,  8, 0x0020, 1, 1, 0, 0, 0, 1, 0 }, { _OT('n','a','n','d') } },
     { /* Wcho */ { 0x6f686357, 283,  8, 0x0020, 1, 1, 0, 0, 0, 0, 0 }, { _OT('w','c','h','o') } },
+    { /* Chrs */ { 0x73726843, 109,  8, 0x0020, 0, 1, 0, 0, 0, 1, 1 }, { _OT('c','h','r','s') } },
+    { /* Diak */ { 0x6b616944, 342,  8, 0x0020, 1, 1, 0, 0, 0, 0, 0 }, { _OT('d','i','a','k') } },
+    { /* Kits */ { 0x7374694b, 288,  8, 0x0020, 1, 0, 1, 1, 0, 0, 0 }, { _OT('k','i','t','s') } },
+    { /* Yezi */ { 0x697a6559, 192,  8, 0x0020, 0, 1, 1, 0, 0, 0, 0 }, { _OT('y','e','z','i') } },
 };
 #undef _OT
 
diff --git a/dlls/dwrite/scripts.h b/dlls/dwrite/scripts.h
index 594d9edea87..fbc467c38bb 100644
--- a/dlls/dwrite/scripts.h
+++ b/dlls/dwrite/scripts.h
@@ -156,5 +156,9 @@ enum unicode_script_id {
     Script_Nyiakeng_Puachue_Hmong = 150,
     Script_Nandinagari = 151,
     Script_Wancho = 152,
-    Script_LastId = 152
+    Script_Chorasmian = 153,
+    Script_Dives_Akuru = 154,
+    Script_Khitan_Small_Script = 155,
+    Script_Yezidi = 156,
+    Script_LastId = 156
 };
diff --git a/tools/make_unicode b/tools/make_unicode
index 4c9d3d6d988..2bfe6f9bb32 100755
--- a/tools/make_unicode
+++ b/tools/make_unicode
@@ -1512,6 +1512,11 @@ my %scripts =
     "Nyiakeng_Puachue_Hmong" => 150,
     "Nandinagari"            => 151,
     "Wancho"                 => 152,
+    # Win11
+    "Chorasmian"             => 153,
+    "Dives_Akuru"            => 154,
+    "Khitan_Small_Script"    => 155,
+    "Yezidi"                 => 156,
 );
 
 ################################################################




More information about the wine-cvs mailing list