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
c28897f3
Commit
c28897f3
authored
Dec 19, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Dec 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add the ability to just return the size of the value record.
parent
9f781a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
opentype.c
dlls/usp10/opentype.c
+8
-8
No files found.
dlls/usp10/opentype.c
View file @
c28897f3
...
...
@@ -1110,14 +1110,14 @@ static void GPOS_convert_design_units_to_device(LPOUTLINETEXTMETRICW lpotm, LPLO
static
INT
GPOS_get_value_record
(
WORD
ValueFormat
,
const
WORD
data
[],
GPOS_ValueRecord
*
record
)
{
INT
offset
=
0
;
if
(
ValueFormat
&
0x0001
)
record
->
XPlacement
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0002
)
record
->
YPlacement
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0004
)
record
->
XAdvance
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0008
)
record
->
YAdvance
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0010
)
record
->
XPlaDevice
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0020
)
record
->
YPlaDevice
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0040
)
record
->
XAdvDevice
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0080
)
record
->
YAdvDevice
=
GET_BE_WORD
(
data
[
offset
++
]);
if
(
ValueFormat
&
0x0001
)
{
if
(
data
)
record
->
XPlacement
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
if
(
ValueFormat
&
0x0002
)
{
if
(
data
)
record
->
YPlacement
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
if
(
ValueFormat
&
0x0004
)
{
if
(
data
)
record
->
XAdvance
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
if
(
ValueFormat
&
0x0008
)
{
if
(
data
)
record
->
YAdvance
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
if
(
ValueFormat
&
0x0010
)
{
if
(
data
)
record
->
XPlaDevice
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
if
(
ValueFormat
&
0x0020
)
{
if
(
data
)
record
->
YPlaDevice
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
if
(
ValueFormat
&
0x0040
)
{
if
(
data
)
record
->
XAdvDevice
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
if
(
ValueFormat
&
0x0080
)
{
if
(
data
)
record
->
YAdvDevice
=
GET_BE_WORD
(
data
[
offset
]);
offset
++
;
}
return
offset
;
}
...
...
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