Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5b46a8a0
Commit
5b46a8a0
authored
Aug 06, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/fallback: Add mappings for some CJK ranges.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
28799301
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
8 deletions
+44
-8
analyzer.c
dlls/dwrite/analyzer.c
+41
-1
layout.c
dlls/dwrite/tests/layout.c
+3
-7
No files found.
dlls/dwrite/analyzer.c
View file @
5b46a8a0
...
...
@@ -248,9 +248,49 @@ system_fallback_config[] =
{
"1800-18AF, 11660-1167F"
,
L"Noto Sans Mongolian"
},
{
"3000-30FF, 31F0-31FF, 4E00-9FFF"
,
L"Meiryo"
},
/* CJK Symbols and Punctuation - 3000-303F
Hiragana - 3040-309F
Katakana - 30A0-30FF
Katakana Phonetic Ext. - 31F0-31FF */
{
"3000-30FF, 31F0-31FF"
,
L"Noto Sans CJK SC"
,
L"zh-Hans"
},
{
"3000-30FF, 31F0-31FF"
,
L"Noto Sans CJK TC"
,
L"zh-Hant"
},
{
"3000-30FF, 31F0-31FF"
,
L"Noto Sans CJK KR"
,
L"ko"
},
{
"3000-30FF, 31F0-31FF"
,
L"Noto Sans CJK JP"
},
/* CJK Unified Ext A - 3400-4DBF
CJK Unified - 4E00-9FFF */
{
"3400-4DBF, 4E00-9FFF"
,
L"Noto Sans CJK SC"
,
L"zh-Hans"
},
{
"3400-4DBF, 4E00-9FFF"
,
L"Noto Sans CJK TC"
,
L"zh-Hant"
},
{
"3400-4DBF, 4E00-9FFF"
,
L"Noto Sans CJK KR"
,
L"ko"
},
{
"3400-4DBF, 4E00-9FFF"
,
L"Noto Sans CJK JP"
},
/* CJK Compatibility Ideographs - F900-FAFF */
{
"F900-FAFF"
,
L"Noto Sans CJK SC"
,
L"zh-Hans"
},
{
"F900-FAFF"
,
L"Noto Sans CJK TC"
,
L"zh-Hant"
},
{
"F900-FAFF"
,
L"Noto Sans CJK KR"
,
L"ko"
},
{
"F900-FAFF"
,
L"Noto Sans CJK JP"
},
/* Vertical Forms - FE10-FE1F */
{
"FE10-FE1F"
,
L"Noto Sans CJK SC"
,
L"zh-Hans"
},
{
"FE10-FE1F"
,
L"Noto Sans CJK KR"
,
L"ko"
},
{
"FE10-FE1F"
,
L"Noto Sans CJK TC"
},
/* CJK Compatibility Forms - FE30-FE4F
Small Form Variants - FE50-FE6F */
{
"FE30-FE6F"
,
L"Noto Sans CJK SC"
,
L"zh-Hans"
},
{
"FE30-FE6F"
,
L"Noto Sans CJK KR"
,
L"ko"
},
{
"FE30-FE6F"
,
L"Noto Sans CJK JP"
,
L"ja"
},
{
"FE30-FE6F"
,
L"Noto Sans CJK TC"
},
/* Halfwidth and Fullwidth Forms */
{
"FF00-FFEF"
,
L"Noto Sans CJK SC"
,
L"zh-Hans"
},
{
"FF00-FFEF"
,
L"Noto Sans CJK TC"
,
L"zh-Hant"
},
{
"FF00-FFEF"
,
L"Noto Sans CJK KR"
,
L"ko"
},
{
"FF00-FFEF"
,
L"Noto Sans CJK JP"
},
};
...
...
dlls/dwrite/tests/layout.c
View file @
5b46a8a0
...
...
@@ -4686,14 +4686,12 @@ static void test_MapCharacters(void)
hr
=
IDWriteFontFallback_MapCharacters
(
fallback
,
&
analysissource
,
1
,
2
,
NULL
,
NULL
,
DWRITE_FONT_WEIGHT_NORMAL
,
DWRITE_FONT_STYLE_NORMAL
,
DWRITE_FONT_STRETCH_NORMAL
,
&
mappedlength
,
&
font
,
&
scale
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
mappedlength
==
1
,
"got %u
\n
"
,
mappedlength
);
ok
(
mappedlength
==
1
,
"Unexpected length %u.
\n
"
,
mappedlength
);
ok
(
scale
==
1
.
0
f
,
"got %f
\n
"
,
scale
);
todo_wine
ok
(
font
!=
NULL
,
"got %p
\n
"
,
font
);
if
(
font
)
{
if
(
font
)
IDWriteFont_Release
(
font
);
}
/* Try with explicit collection, Tahoma will be forced. */
/* 1. Latin part */
g_source
=
str2W
;
...
...
@@ -4726,7 +4724,6 @@ if (font) {
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
mappedlength
==
1
,
"got %u
\n
"
,
mappedlength
);
ok
(
scale
==
1
.
0
f
,
"got %f
\n
"
,
scale
);
todo_wine
ok
(
font
!=
NULL
,
"got %p
\n
"
,
font
);
if
(
font
)
...
...
@@ -4736,7 +4733,6 @@ if (font) {
ok
(
hr
==
S_OK
&&
exists
,
"Unexpected hr %#lx, exists %d.
\n
"
,
hr
,
exists
);
hr
=
IDWriteLocalizedStrings_GetString
(
strings
,
0
,
buffW
,
ARRAY_SIZE
(
buffW
));
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
lstrcmpW
(
buffW
,
L"Tahoma"
),
"Unexpected string %s.
\n
"
,
wine_dbgstr_w
(
buffW
));
IDWriteLocalizedStrings_Release
(
strings
);
IDWriteFont_Release
(
font
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment