Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5e5d8d21
Commit
5e5d8d21
authored
Feb 20, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Feb 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Clusters are represented by glyph indices not character positions.
parent
ab2eb34a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
usp10.c
dlls/usp10/usp10.c
+6
-4
No files found.
dlls/usp10/usp10.c
View file @
5e5d8d21
...
...
@@ -2534,8 +2534,9 @@ HRESULT WINAPI ScriptCPtoX(int iCP,
if
(
check
>=
cChars
&&
!
iMaxPos
)
{
for
(
check
=
clust
;
check
<
cChars
;
check
++
)
special_size
+=
get_glyph_cluster_advance
(
piAdvance
,
psva
,
pwLogClust
,
cGlyphs
,
cChars
,
check
,
1
);
int
glyph
;
for
(
glyph
=
clust
;
glyph
<
cGlyphs
;
glyph
++
)
special_size
+=
get_glyph_cluster_advance
(
piAdvance
,
psva
,
pwLogClust
,
cGlyphs
,
cChars
,
glyph
,
1
);
iSpecial
=
item
;
special_size
/=
(
cChars
-
item
);
iPosX
+=
special_size
;
...
...
@@ -2666,8 +2667,9 @@ HRESULT WINAPI ScriptXtoCP(int iX,
if
(
check
>=
cChars
&&
direction
>
0
)
{
for
(
check
=
clust
;
check
<
cChars
;
check
++
)
special_size
+=
get_glyph_cluster_advance
(
piAdvance
,
psva
,
pwLogClust
,
cGlyphs
,
cChars
,
check
,
direction
);
int
glyph
;
for
(
glyph
=
clust
;
glyph
<
cGlyphs
;
glyph
++
)
special_size
+=
get_glyph_cluster_advance
(
piAdvance
,
psva
,
pwLogClust
,
cGlyphs
,
cChars
,
glyph
,
direction
);
iSpecial
=
item
;
special_size
/=
(
cChars
-
item
);
iPosX
+=
special_size
;
...
...
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