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
4e760d89
Commit
4e760d89
authored
Sep 06, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Disable glyph indexes for Symbol, non-TrueType, and device fonts.
parent
7025db43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
usp10.c
dlls/usp10/usp10.c
+10
-9
No files found.
dlls/usp10/usp10.c
View file @
4e760d89
...
...
@@ -1050,9 +1050,6 @@ static HRESULT SS_ItemOut( SCRIPT_STRING_ANALYSIS ssa,
(
cEnd
>=
0
&&
analysis
->
pItem
[
iItem
].
iCharPos
>=
cEnd
))
return
S_OK
;
uOptions
|=
ETO_GLYPH_INDEX
;
analysis
->
pItem
[
0
].
a
.
fNoGlyphIndex
=
FALSE
;
/* say that we have glyphs */
if
(
fSelected
)
{
BkMode
=
GetBkMode
(
analysis
->
hdc
);
...
...
@@ -1728,6 +1725,13 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
((
ScriptCache
*
)
*
psc
)
->
userScript
=
tagScript
;
((
ScriptCache
*
)
*
psc
)
->
userLang
=
tagLangSys
;
/* set fNoGlyphIndex for symbolic, and device fonts or non truetype fonts */
if
(
!
psa
->
fNoGlyphIndex
&&
(
!
(
get_cache_pitch_family
(
psc
)
&
TMPF_TRUETYPE
)
||
(
get_cache_pitch_family
(
psc
)
&
TMPF_DEVICE
)
||
(((
ScriptCache
*
)
*
psc
)
->
tm
.
tmCharSet
==
SYMBOL_CHARSET
)))
psa
->
fNoGlyphIndex
=
TRUE
;
/* Initialize a SCRIPT_VISATTR and LogClust for each char in this run */
for
(
i
=
0
;
i
<
cChars
;
i
++
)
{
...
...
@@ -1773,12 +1777,9 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
rChars
[
i
]
=
chInput
;
}
if
(
get_cache_pitch_family
(
psc
)
&
TMPF_TRUETYPE
)
{
SHAPE_ContextualShaping
(
hdc
,
(
ScriptCache
*
)
*
psc
,
psa
,
rChars
,
cChars
,
pwOutGlyphs
,
pcGlyphs
,
cMaxGlyphs
,
pwLogClust
);
SHAPE_ApplyDefaultOpentypeFeatures
(
hdc
,
(
ScriptCache
*
)
*
psc
,
psa
,
pwOutGlyphs
,
pcGlyphs
,
cMaxGlyphs
,
cChars
,
pwLogClust
);
SHAPE_CharGlyphProp
(
hdc
,
(
ScriptCache
*
)
*
psc
,
psa
,
pwcChars
,
cChars
,
pwOutGlyphs
,
*
pcGlyphs
,
pwLogClust
,
pCharProps
,
pOutGlyphProps
);
}
SHAPE_ContextualShaping
(
hdc
,
(
ScriptCache
*
)
*
psc
,
psa
,
rChars
,
cChars
,
pwOutGlyphs
,
pcGlyphs
,
cMaxGlyphs
,
pwLogClust
);
SHAPE_ApplyDefaultOpentypeFeatures
(
hdc
,
(
ScriptCache
*
)
*
psc
,
psa
,
pwOutGlyphs
,
pcGlyphs
,
cMaxGlyphs
,
cChars
,
pwLogClust
);
SHAPE_CharGlyphProp
(
hdc
,
(
ScriptCache
*
)
*
psc
,
psa
,
pwcChars
,
cChars
,
pwOutGlyphs
,
*
pcGlyphs
,
pwLogClust
,
pCharProps
,
pOutGlyphProps
);
heap_free
(
rChars
);
}
else
...
...
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