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
addcf866
Commit
addcf866
authored
Oct 09, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Store glyph mappings and widths in the script cache.
parent
fa6a31ab
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
usp10.c
dlls/usp10/tests/usp10.c
+10
-1
usp10.c
dlls/usp10/usp10.c
+0
-0
No files found.
dlls/usp10/tests/usp10.c
View file @
addcf866
...
...
@@ -61,13 +61,22 @@ static void test_ScriptShape(HDC hdc)
hr
=
ScriptShape
(
hdc
,
&
sc
,
test1
,
4
,
4
,
&
items
[
0
].
a
,
glyphs
,
NULL
,
attrs
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ScriptShape should return E_INVALIDARG not %08x
\n
"
,
hr
);
hr
=
ScriptShape
(
NULL
,
&
sc
,
test1
,
4
,
4
,
&
items
[
0
].
a
,
glyphs
,
NULL
,
attrs
,
&
nb
);
ok
(
hr
==
E_PENDING
,
"ScriptShape should return E_PENDING not %08x
\n
"
,
hr
);
hr
=
ScriptShape
(
hdc
,
&
sc
,
test1
,
4
,
4
,
&
items
[
0
].
a
,
glyphs
,
NULL
,
attrs
,
&
nb
);
ok
(
!
hr
,
"ScriptShape should return S_OK not %08x
\n
"
,
hr
);
ok
(
items
[
0
].
a
.
fNoGlyphIndex
==
FALSE
,
"fNoGlyphIndex TRUE
\n
"
);
hr
=
ScriptShape
(
NULL
,
&
sc
,
test1
,
4
,
4
,
&
items
[
0
].
a
,
glyphs
,
NULL
,
attrs
,
&
nb
);
ok
(
!
hr
,
"ScriptShape should return S_OK not %08x
\n
"
,
hr
);
hr
=
ScriptPlace
(
hdc
,
&
sc
,
glyphs
,
4
,
NULL
,
&
items
[
0
].
a
,
widths
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ScriptPlace should return E_INVALIDARG not %08x
\n
"
,
hr
);
hr
=
ScriptPlace
(
NULL
,
&
sc
,
glyphs
,
4
,
attrs
,
&
items
[
0
].
a
,
widths
,
NULL
,
NULL
);
ok
(
hr
==
E_PENDING
,
"ScriptPlace should return E_PENDING not %08x
\n
"
,
hr
);
hr
=
ScriptPlace
(
hdc
,
&
sc
,
glyphs
,
4
,
attrs
,
&
items
[
0
].
a
,
widths
,
NULL
,
NULL
);
ok
(
!
hr
,
"ScriptPlace should return S_OK not %08x
\n
"
,
hr
);
ok
(
items
[
0
].
a
.
fNoGlyphIndex
==
FALSE
,
"fNoGlyphIndex TRUE
\n
"
);
...
...
@@ -1394,7 +1403,7 @@ START_TEST(usp10)
ok
(
hdc
!=
NULL
,
"HDC failed to be created %p
\n
"
,
hdc
);
memset
(
&
lf
,
0
,
sizeof
(
LOGFONTA
));
lstrcpyA
(
lf
.
lfFaceName
,
"
Symbol
"
);
lstrcpyA
(
lf
.
lfFaceName
,
"
Tahoma
"
);
lf
.
lfHeight
=
10
;
lf
.
lfWeight
=
3
;
lf
.
lfWidth
=
10
;
...
...
dlls/usp10/usp10.c
View file @
addcf866
This diff is collapsed.
Click to expand it.
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