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
6ae41d01
Commit
6ae41d01
authored
Jan 14, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Jan 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Fix MarkToMark offset for RTL text.
parent
464bf22f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
opentype.c
dlls/usp10/opentype.c
+4
-2
No files found.
dlls/usp10/opentype.c
View file @
6ae41d01
...
...
@@ -1758,12 +1758,14 @@ static INT GPOS_apply_lookup(LPOUTLINETEXTMETRICW lpotm, LPLOGFONTW lplogfont, c
{
double
devX
,
devY
;
POINT
desU
=
{
0
,
0
};
int
write_dir
=
(
analysis
->
fRTL
&&
!
analysis
->
fLogicalOrder
)
?
-
1
:
1
;
GPOS_apply_MarkToMark
(
look
,
analysis
,
glyphs
,
glyph_index
,
glyph_count
,
ppem
,
&
desU
);
if
(
desU
.
x
||
desU
.
y
)
{
GPOS_convert_design_units_to_device
(
lpotm
,
lplogfont
,
desU
.
x
,
desU
.
y
,
&
devX
,
&
devY
);
pGoffset
[
glyph_index
].
du
+=
round
(
devX
)
+
pGoffset
[
glyph_index
-
1
].
du
;
pGoffset
[
glyph_index
].
dv
+=
round
(
devY
)
+
pGoffset
[
glyph_index
-
1
].
dv
;
if
(
analysis
->
fRTL
&&
analysis
->
fLogicalOrder
)
devX
*=
-
1
;
pGoffset
[
glyph_index
].
du
+=
round
(
devX
)
+
pGoffset
[
glyph_index
-
write_dir
].
du
;
pGoffset
[
glyph_index
].
dv
+=
round
(
devY
)
+
pGoffset
[
glyph_index
-
write_dir
].
dv
;
}
break
;
}
...
...
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