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
e083986d
Commit
e083986d
authored
Aug 12, 2015
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Aug 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Display the blank glyph for some control characters (non truetype/opentype).
parent
22e8046f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
usp10.c
dlls/usp10/tests/usp10.c
+1
-5
usp10.c
dlls/usp10/usp10.c
+9
-0
No files found.
dlls/usp10/tests/usp10.c
View file @
e083986d
...
...
@@ -1486,11 +1486,7 @@ static void test_ScriptShape(HDC hdc)
hr
=
ScriptShape
(
hdc
,
&
sc
,
&
blanks
[
j
],
1
,
1
,
&
items
[
0
].
a
,
glyphs2
,
logclust
,
attrs
,
&
nb
);
ok
(
hr
==
S_OK
,
"%s: [%02x] expected S_OK, got %08x
\n
"
,
lf
.
lfFaceName
,
blanks
[
j
],
hr
);
ok
(
nb
==
1
,
"%s: [%02x] expected 1, got %d
\n
"
,
lf
.
lfFaceName
,
blanks
[
j
],
nb
);
if
(
i
==
0
)
ok
(
glyphs
[
0
]
==
glyphs2
[
0
]
||
broken
(
glyphs2
[
0
]
==
blanks
[
j
]
&&
(
blanks
[
j
]
<
0x10
)),
"%s: [%02x] expected %04x, got %04x
\n
"
,
lf
.
lfFaceName
,
blanks
[
j
],
glyphs
[
0
],
glyphs2
[
0
]);
else
todo_wine
ok
(
glyphs
[
0
]
==
glyphs2
[
0
]
||
broken
(
glyphs2
[
0
]
==
blanks
[
j
]
&&
(
blanks
[
j
]
<
0x10
)),
"%s: [%02x] expected %04x, got %04x
\n
"
,
lf
.
lfFaceName
,
blanks
[
j
],
glyphs
[
0
],
glyphs2
[
0
]);
...
...
dlls/usp10/usp10.c
View file @
e083986d
...
...
@@ -2967,6 +2967,15 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
/* No mirroring done here */
if
(
rtl
)
idx
=
cChars
-
1
-
i
;
pwOutGlyphs
[
i
]
=
pwcChars
[
idx
];
/* overwrite some basic control glyphs to blank */
if
(
psa
&&
psa
->
eScript
==
Script_Control
&&
pwcChars
[
idx
]
<
((
ScriptCache
*
)
*
psc
)
->
tm
.
tmFirstChar
)
{
if
(
pwcChars
[
idx
]
==
0x0009
||
pwcChars
[
idx
]
==
0x000A
||
pwcChars
[
idx
]
==
0x000D
||
pwcChars
[
idx
]
>=
0x001C
)
pwOutGlyphs
[
i
]
=
((
ScriptCache
*
)
*
psc
)
->
sfp
.
wgBlank
;
}
}
}
...
...
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