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
0c141954
Commit
0c141954
authored
Jan 27, 2017
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Apply 'ccmp' before Arabic contextual shaping.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e2d4cf9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
shape.c
dlls/usp10/shape.c
+17
-1
No files found.
dlls/usp10/shape.c
View file @
0c141954
...
...
@@ -1128,9 +1128,19 @@ static void ContextualShape_Arabic(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *p
if
(
psc
->
GSUB_Table
)
{
INT
nextIndex
;
INT
nextIndex
,
offset
=
0
;
INT
prevCount
=
*
pcGlyphs
;
/* Apply CCMP first */
apply_GSUB_feature_to_glyph
(
hdc
,
psa
,
psc
,
pwOutGlyphs
,
glyph_index
,
dirL
,
pcGlyphs
,
"ccmp"
);
if
(
prevCount
!=
*
pcGlyphs
)
{
offset
=
*
pcGlyphs
-
prevCount
;
if
(
dirL
<
0
)
glyph_index
-=
offset
*
dirL
;
}
/* Apply the contextual feature */
nextIndex
=
apply_GSUB_feature_to_glyph
(
hdc
,
psa
,
psc
,
pwOutGlyphs
,
glyph_index
,
dirL
,
pcGlyphs
,
contextual_features
[
context_shape
[
char_index
]]);
...
...
@@ -1138,7 +1148,13 @@ static void ContextualShape_Arabic(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *p
{
UpdateClusters
(
glyph_index
,
*
pcGlyphs
-
prevCount
,
dirL
,
cChars
,
pwLogClust
);
char_index
+=
dirL
;
if
(
!
offset
)
glyph_index
=
nextIndex
;
else
{
offset
=
*
pcGlyphs
-
prevCount
;
glyph_index
+=
dirL
*
(
offset
+
1
);
}
}
shaped
=
(
nextIndex
>
GSUB_E_NOGLYPH
);
}
...
...
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