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
6fe14a01
Commit
6fe14a01
authored
Dec 15, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Do not try to fallback if no fallback font is specified.
parent
5086bb2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
usp10.c
dlls/usp10/usp10.c
+8
-4
No files found.
dlls/usp10/usp10.c
View file @
6fe14a01
...
...
@@ -1719,12 +1719,16 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
LOGFONTW
lf
;
GetObjectW
(
GetCurrentObject
(
hdc
,
OBJ_FONT
),
sizeof
(
lf
),
&
lf
);
lf
.
lfCharSet
=
scriptInformation
[
analysis
->
pItem
[
i
].
a
.
eScript
].
props
.
bCharSet
;
lf
.
lfFaceName
[
0
]
=
0
;
find_fallback_font
(
analysis
->
pItem
[
i
].
a
.
eScript
,
lf
.
lfFaceName
);
analysis
->
glyphs
[
i
].
fallbackFont
=
CreateFontIndirectW
(
&
lf
);
if
(
analysis
->
glyphs
[
i
].
fallbackFont
)
if
(
lf
.
lfFaceName
[
0
])
{
ScriptFreeCache
(
sc
);
originalFont
=
SelectObject
(
hdc
,
analysis
->
glyphs
[
i
].
fallbackFont
);
analysis
->
glyphs
[
i
].
fallbackFont
=
CreateFontIndirectW
(
&
lf
);
if
(
analysis
->
glyphs
[
i
].
fallbackFont
)
{
ScriptFreeCache
(
sc
);
originalFont
=
SelectObject
(
hdc
,
analysis
->
glyphs
[
i
].
fallbackFont
);
}
}
}
...
...
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