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
123c7cde
Commit
123c7cde
authored
Aug 10, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Set font stretch from 'head' table as a fallback.
parent
4b4674be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
opentype.c
dlls/dwrite/opentype.c
+12
-2
No files found.
dlls/dwrite/opentype.c
View file @
123c7cde
...
...
@@ -133,8 +133,13 @@ typedef struct
enum
TT_HEAD_MACSTYLE
{
TT_HEAD_MACSTYLE_BOLD
=
1
<<
0
,
TT_HEAD_MACSTYLE_ITALIC
=
1
<<
1
,
TT_HEAD_MACSTYLE_BOLD
=
1
<<
0
,
TT_HEAD_MACSTYLE_ITALIC
=
1
<<
1
,
TT_HEAD_MACSTYLE_UNDERLINE
=
1
<<
2
,
TT_HEAD_MACSTYLE_OUTLINE
=
1
<<
3
,
TT_HEAD_MACSTYLE_SHADOW
=
1
<<
4
,
TT_HEAD_MACSTYLE_CONDENSED
=
1
<<
5
,
TT_HEAD_MACSTYLE_EXTENDED
=
1
<<
6
,
};
typedef
struct
...
...
@@ -1051,6 +1056,11 @@ void opentype_get_font_properties(IDWriteFontFileStream *stream, DWRITE_FONT_FAC
USHORT
macStyle
=
GET_BE_WORD
(
tt_head
->
macStyle
);
if
(
macStyle
&
TT_HEAD_MACSTYLE_ITALIC
)
props
->
style
=
DWRITE_FONT_STYLE_ITALIC
;
if
(
macStyle
&
TT_HEAD_MACSTYLE_CONDENSED
)
props
->
stretch
=
DWRITE_FONT_STRETCH_CONDENSED
;
else
if
(
macStyle
&
TT_HEAD_MACSTYLE_EXTENDED
)
props
->
stretch
=
DWRITE_FONT_STRETCH_EXPANDED
;
}
TRACE
(
"stretch=%d, weight=%d, style %d
\n
"
,
props
->
stretch
,
props
->
weight
,
props
->
style
);
...
...
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