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
c4d91761
Commit
c4d91761
authored
Oct 09, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Recognize CFF2 table as CFF variant.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d8e42057
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
opentype.c
dlls/dwrite/opentype.c
+3
-1
font.c
dlls/dwrite/tests/font.c
+3
-1
No files found.
dlls/dwrite/opentype.c
View file @
c4d91761
...
...
@@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dwrite);
#define MS_NAME_TAG DWRITE_MAKE_OPENTYPE_TAG('n','a','m','e')
#define MS_GLYF_TAG DWRITE_MAKE_OPENTYPE_TAG('g','l','y','f')
#define MS_CFF__TAG DWRITE_MAKE_OPENTYPE_TAG('C','F','F',' ')
#define MS_CFF2_TAG DWRITE_MAKE_OPENTYPE_TAG('C','F','F','2')
#define MS_COLR_TAG DWRITE_MAKE_OPENTYPE_TAG('C','O','L','R')
#define MS_SVG__TAG DWRITE_MAKE_OPENTYPE_TAG('S','V','G',' ')
#define MS_SBIX_TAG DWRITE_MAKE_OPENTYPE_TAG('s','b','i','x')
...
...
@@ -2217,7 +2218,8 @@ UINT32 opentype_get_glyph_image_formats(IDWriteFontFace4 *fontface)
if
(
opentype_has_font_table
(
fontface
,
MS_GLYF_TAG
))
ret
|=
DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE
;
if
(
opentype_has_font_table
(
fontface
,
MS_CFF__TAG
))
if
(
opentype_has_font_table
(
fontface
,
MS_CFF__TAG
)
||
opentype_has_font_table
(
fontface
,
MS_CFF2_TAG
))
ret
|=
DWRITE_GLYPH_IMAGE_FORMATS_CFF
;
if
(
opentype_has_font_table
(
fontface
,
MS_COLR_TAG
))
...
...
dlls/dwrite/tests/font.c
View file @
c4d91761
...
...
@@ -44,6 +44,7 @@
#define MS_KERN_TAG DWRITE_MAKE_OPENTYPE_TAG('k','e','r','n')
#define MS_GLYF_TAG DWRITE_MAKE_OPENTYPE_TAG('g','l','y','f')
#define MS_CFF__TAG DWRITE_MAKE_OPENTYPE_TAG('C','F','F',' ')
#define MS_CFF2_TAG DWRITE_MAKE_OPENTYPE_TAG('C','F','F','2')
#define MS_COLR_TAG DWRITE_MAKE_OPENTYPE_TAG('C','O','L','R')
#define MS_SVG__TAG DWRITE_MAKE_OPENTYPE_TAG('S','V','G',' ')
#define MS_SBIX_TAG DWRITE_MAKE_OPENTYPE_TAG('s','b','i','x')
...
...
@@ -8048,7 +8049,8 @@ static DWORD get_face_glyph_image_formats(IDWriteFontFace4 *fontface)
if
(
face_has_table
(
fontface
,
MS_GLYF_TAG
))
ret
|=
DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE
;
if
(
face_has_table
(
fontface
,
MS_CFF__TAG
))
if
(
face_has_table
(
fontface
,
MS_CFF__TAG
)
||
face_has_table
(
fontface
,
MS_CFF2_TAG
))
ret
|=
DWRITE_GLYPH_IMAGE_FORMATS_CFF
;
if
(
face_has_table
(
fontface
,
MS_COLR_TAG
))
...
...
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