Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
42274ed8
Commit
42274ed8
authored
May 24, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10/test: Add Thaana shaping test.
parent
2d895542
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
usp10.c
dlls/usp10/tests/usp10.c
+26
-0
No files found.
dlls/usp10/tests/usp10.c
View file @
42274ed8
...
...
@@ -585,6 +585,24 @@ static void test_ScriptShapeOpenType(HDC hdc)
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}}
};
/* Thaana */
static
const
WCHAR
test_thaana
[]
=
{
0x078a
,
0x07ae
,
0x0792
,
0x07b0
,
0x0020
,
0x0796
,
0x07aa
,
0x0789
,
0x07b0
,
0x0795
,
0x07ac
,
0x0791
,
0x07b0
};
static
const
shapeTest_char
thaana_c
[]
=
{{
12
,{
0
,
0
}},{
12
,{
0
,
0
}},{
10
,{
0
,
0
}},{
10
,{
0
,
0
}},{
8
,{
1
,
0
}},{
7
,{
0
,
0
}},{
7
,{
0
,
0
}},{
5
,{
0
,
0
}},{
5
,{
0
,
0
}},{
3
,{
0
,
0
}},{
3
,{
0
,
0
}},{
1
,{
0
,
0
}},{
1
,{
0
,
0
}}};
static
const
shapeTest_glyph
thaana_g
[]
=
{
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
1
,
1
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
1
,
1
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
1
,
1
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
1
,
1
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_CHARACTER
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
1
,
1
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
1
,
1
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}}
};
if
(
!
pScriptItemizeOpenType
||
!
pScriptShapeOpenType
)
{
win_skip
(
"ScriptShapeOpenType not available on this platform
\n
"
);
...
...
@@ -649,6 +667,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
SelectObject
(
hdc
,
hfont_orig
);
DeleteObject
(
hfont
);
}
test_valid
=
find_font_for_range
(
hdc
,
"MV Boli"
,
72
,
test_thaana
[
0
],
&
hfont
,
&
hfont_orig
);
if
(
hfont
!=
NULL
)
{
test_shape_ok_valid
(
test_valid
,
hdc
,
test_thaana
,
13
,
&
Control
,
&
State
,
0
,
13
,
thaana_c
,
thaana_g
);
SelectObject
(
hdc
,
hfont_orig
);
DeleteObject
(
hfont
);
}
}
static
void
test_ScriptShape
(
HDC
hdc
)
...
...
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