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
ed150538
Commit
ed150538
authored
Nov 20, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: In Arabic only fallback to presentation form B for isolated glyphs.
parent
f869a161
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
shape.c
dlls/usp10/shape.c
+9
-6
No files found.
dlls/usp10/shape.c
View file @
ed150538
...
...
@@ -1567,13 +1567,16 @@ static void ContextualShape_Arabic(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *p
if
(
!
shaped
)
{
WORD
newGlyph
=
pwOutGlyphs
[
i
];
if
(
pwcChars
[
i
]
>=
FIRST_ARABIC_CHAR
&&
pwcChars
[
i
]
<=
LAST_ARABIC_CHAR
)
if
(
context_shape
[
i
]
==
Xn
)
{
/* fall back to presentation form B */
WCHAR
context_char
=
wine_shaping_forms
[
pwcChars
[
i
]
-
FIRST_ARABIC_CHAR
][
context_shape
[
i
]];
if
(
context_char
!=
pwcChars
[
i
]
&&
GetGlyphIndicesW
(
hdc
,
&
context_char
,
1
,
&
newGlyph
,
0
)
!=
GDI_ERROR
&&
newGlyph
!=
0x0000
)
pwOutGlyphs
[
i
]
=
newGlyph
;
WORD
newGlyph
=
pwOutGlyphs
[
i
];
if
(
pwcChars
[
i
]
>=
FIRST_ARABIC_CHAR
&&
pwcChars
[
i
]
<=
LAST_ARABIC_CHAR
)
{
/* fall back to presentation form B */
WCHAR
context_char
=
wine_shaping_forms
[
pwcChars
[
i
]
-
FIRST_ARABIC_CHAR
][
context_shape
[
i
]];
if
(
context_char
!=
pwcChars
[
i
]
&&
GetGlyphIndicesW
(
hdc
,
&
context_char
,
1
,
&
newGlyph
,
0
)
!=
GDI_ERROR
&&
newGlyph
!=
0x0000
)
pwOutGlyphs
[
i
]
=
newGlyph
;
}
}
i
++
;
}
...
...
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