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
6f8c5195
Commit
6f8c5195
authored
Nov 03, 2022
by
Ziqing Hui
Committed by
Alexandre Julliard
Nov 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10/tests: Add Katakana shaping test.
parent
0e741538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
usp10.c
dlls/usp10/tests/usp10.c
+16
-0
No files found.
dlls/usp10/tests/usp10.c
View file @
6f8c5195
...
...
@@ -1625,6 +1625,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
{
1
,{{
SCRIPT_JUSTIFY_CHARACTER
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_CHARACTER
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_CHARACTER
,
1
,
0
,
0
,
0
,
0
},
0
}}
};
/* Katakana */
static
const
WCHAR
test_katakana
[]
=
{
0x30b3
,
0x30fc
,
0x30c9
};
static
const
shapeTest_char
katakana_c
[]
=
{{
0
,{
0
,
0
}},{
1
,{
0
,
0
}},{
2
,{
0
,
0
}}};
static
const
shapeTest_glyph
katakana_g
[]
=
{
{
1
,{{
SCRIPT_JUSTIFY_CHARACTER
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_CHARACTER
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_CHARACTER
,
1
,
0
,
0
,
0
,
0
},
0
}}
};
/* CJK */
static
const
WCHAR
test_cjk
[]
=
{
0x4e2d
,
0x6587
,
0x65e5
,
0x672c
,
0x8a9e
};
static
const
shapeTest_char
cjk_c
[]
=
{{
0
,{
0
,
0
}},{
1
,{
0
,
0
}},{
2
,{
0
,
0
}},{
3
,{
0
,
0
}},{
4
,{
0
,
0
}}};
...
...
@@ -1828,6 +1836,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
DeleteObject
(
hfont
);
}
test_valid
=
find_font_for_range
(
hdc
,
"SimSun"
,
50
,
test_katakana
[
0
],
&
hfont
,
&
hfont_orig
,
NULL
);
if
(
hfont
!=
NULL
)
{
test_shape_ok_valid
(
test_valid
,
hdc
,
test_katakana
,
3
,
&
Control
,
&
State
,
0
,
3
,
katakana_c
,
katakana_g
);
SelectObject
(
hdc
,
hfont_orig
);
DeleteObject
(
hfont
);
}
test_valid
=
find_font_for_range
(
hdc
,
"SimSun"
,
59
,
test_cjk
[
0
],
&
hfont
,
&
hfont_orig
,
NULL
);
if
(
hfont
!=
NULL
)
{
...
...
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