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
ff57b1fe
Commit
ff57b1fe
authored
Aug 13, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Sanitize specified stretch value, valid range is [1, 9].
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cc8cc65f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
opentype.c
dlls/dwrite/opentype.c
+3
-2
No files found.
dlls/dwrite/opentype.c
View file @
ff57b1fe
...
...
@@ -1291,9 +1291,10 @@ void opentype_get_font_properties(struct file_stream_desc *stream_desc, struct d
USHORT
version
=
GET_BE_WORD
(
tt_os2
->
version
);
USHORT
fsSelection
=
GET_BE_WORD
(
tt_os2
->
fsSelection
);
USHORT
usWeightClass
=
GET_BE_WORD
(
tt_os2
->
usWeightClass
);
USHORT
usWidthClass
=
GET_BE_WORD
(
tt_os2
->
usWidthClass
);
if
(
GET_BE_WORD
(
tt_os2
->
usWidthClass
)
<=
DWRITE_FONT_STRETCH_ULTRA_EXPANDED
)
props
->
stretch
=
GET_BE_WORD
(
tt_os2
->
usWidthClass
)
;
if
(
usWidthClass
>
DWRITE_FONT_STRETCH_UNDEFINED
&&
usWidthClass
<=
DWRITE_FONT_STRETCH_ULTRA_EXPANDED
)
props
->
stretch
=
usWidthClass
;
if
(
usWeightClass
>=
1
&&
usWeightClass
<=
9
)
usWeightClass
*=
100
;
...
...
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