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
a1795cfc
Commit
a1795cfc
authored
Jun 02, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10/tests: Add Gujarati shaping test.
parent
856b2726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
usp10.c
dlls/usp10/tests/usp10.c
+20
-0
No files found.
dlls/usp10/tests/usp10.c
View file @
a1795cfc
...
...
@@ -783,6 +783,18 @@ static void test_ScriptShapeOpenType(HDC hdc)
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
0
,
0
,
0
,
0
},
0
}}
};
/* Gujarati */
static
const
WCHAR
test_gujarati
[]
=
{
0x0a97
,
0x0ac1
,
0x0a9c
,
0x0ab0
,
0x0abe
,
0x0aa4
,
0x0ac0
};
static
const
shapeTest_char
gujarati_c
[]
=
{{
0
,{
0
,
0
}},{
0
,{
0
,
0
}},{
2
,{
0
,
0
}},{
3
,{
0
,
0
}},{
3
,{
0
,
0
}},{
5
,{
0
,
0
}},{
5
,{
0
,
0
}}};
static
const
shapeTest_glyph
gujarati_g
[]
=
{
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
1
,
0
,
0
,
0
,
0
},
0
}},
{
1
,{{
SCRIPT_JUSTIFY_NONE
,
0
,
0
,
0
,
0
,
0
},
0
}}
};
if
(
!
pScriptItemizeOpenType
||
!
pScriptShapeOpenType
)
{
win_skip
(
"ScriptShapeOpenType not available on this platform
\n
"
);
...
...
@@ -903,6 +915,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
SelectObject
(
hdc
,
hfont_orig
);
DeleteObject
(
hfont
);
}
test_valid
=
find_font_for_range
(
hdc
,
"Shruti"
,
18
,
test_gujarati
[
0
],
&
hfont
,
&
hfont_orig
);
if
(
hfont
!=
NULL
)
{
test_shape_ok_valid
(
test_valid
,
hdc
,
test_gujarati
,
7
,
&
Control
,
&
State
,
0
,
7
,
gujarati_c
,
gujarati_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