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
464bf22f
Commit
464bf22f
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 pair adjustment for RTL text.
parent
0783987a
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 @
464bf22f
...
...
@@ -1699,11 +1699,13 @@ static INT GPOS_apply_lookup(LPOUTLINETEXTMETRICW lpotm, LPLOGFONTW lplogfont, c
double
devX
,
devY
;
int
index
;
int
write_dir
=
(
analysis
->
fRTL
&&
!
analysis
->
fLogicalOrder
)
?
-
1
:
1
;
int
offset_sign
=
(
analysis
->
fRTL
&&
analysis
->
fLogicalOrder
)
?
-
1
:
1
;
index
=
GPOS_apply_PairAdjustment
(
look
,
analysis
,
glyphs
,
glyph_index
,
glyph_count
,
ppem
,
adjust
,
advance
);
if
(
adjust
[
0
].
x
||
adjust
[
0
].
y
)
{
GPOS_convert_design_units_to_device
(
lpotm
,
lplogfont
,
adjust
[
0
].
x
,
adjust
[
0
].
y
,
&
devX
,
&
devY
);
pGoffset
[
glyph_index
].
du
+=
round
(
devX
);
pGoffset
[
glyph_index
].
du
+=
round
(
devX
)
*
offset_sign
;
pGoffset
[
glyph_index
].
dv
+=
round
(
devY
);
}
if
(
advance
[
0
].
x
||
advance
[
0
].
y
)
...
...
@@ -1714,7 +1716,7 @@ static INT GPOS_apply_lookup(LPOUTLINETEXTMETRICW lpotm, LPLOGFONTW lplogfont, c
if
(
adjust
[
1
].
x
||
adjust
[
1
].
y
)
{
GPOS_convert_design_units_to_device
(
lpotm
,
lplogfont
,
adjust
[
1
].
x
,
adjust
[
1
].
y
,
&
devX
,
&
devY
);
pGoffset
[
glyph_index
+
write_dir
].
du
+=
round
(
devX
);
pGoffset
[
glyph_index
+
write_dir
].
du
+=
round
(
devX
)
*
offset_sign
;
pGoffset
[
glyph_index
+
write_dir
].
dv
+=
round
(
devY
);
}
if
(
advance
[
1
].
x
||
advance
[
1
].
y
)
...
...
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