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
e5ab22d6
Commit
e5ab22d6
authored
Jan 15, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ups10: Mark to Base, Mark and Ligature are not cumulative offsets.
parent
b6bc92aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
opentype.c
dlls/usp10/opentype.c
+11
-8
No files found.
dlls/usp10/opentype.c
View file @
e5ab22d6
...
...
@@ -1734,10 +1734,13 @@ static INT GPOS_apply_lookup(LPOUTLINETEXTMETRICW lpotm, LPLOGFONTW lplogfont, c
if
(
desU
.
x
||
desU
.
y
)
{
GPOS_convert_design_units_to_device
(
lpotm
,
lplogfont
,
desU
.
x
,
desU
.
y
,
&
devX
,
&
devY
);
if
(
!
analysis
->
fRTL
)
pGoffset
[
glyph_index
].
du
-=
piAdvance
[
glyph_index
-
1
];
else
if
(
analysis
->
fLogicalOrder
)
devX
*=
-
1
;
pGoffset
[
glyph_index
].
du
+=
round
(
devX
);
pGoffset
[
glyph_index
].
dv
+=
round
(
devY
);
if
(
!
analysis
->
fRTL
)
pGoffset
[
glyph_index
].
du
=
round
(
devX
)
-
piAdvance
[
glyph_index
-
1
];
else
{
if
(
analysis
->
fLogicalOrder
)
devX
*=
-
1
;
pGoffset
[
glyph_index
].
du
=
round
(
devX
);
}
pGoffset
[
glyph_index
].
dv
=
round
(
devY
);
}
break
;
}
...
...
@@ -1749,8 +1752,8 @@ static INT GPOS_apply_lookup(LPOUTLINETEXTMETRICW lpotm, LPLOGFONTW lplogfont, c
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
)
-
piAdvance
[
glyph_index
-
1
]);
pGoffset
[
glyph_index
].
dv
+
=
round
(
devY
);
pGoffset
[
glyph_index
].
du
=
(
round
(
devX
)
-
piAdvance
[
glyph_index
-
1
]);
pGoffset
[
glyph_index
].
dv
=
round
(
devY
);
}
break
;
}
...
...
@@ -1764,8 +1767,8 @@ static INT GPOS_apply_lookup(LPOUTLINETEXTMETRICW lpotm, LPLOGFONTW lplogfont, c
{
GPOS_convert_design_units_to_device
(
lpotm
,
lplogfont
,
desU
.
x
,
desU
.
y
,
&
devX
,
&
devY
);
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
;
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