dwrite: Look for 'SVG ' table too when checking supported formats.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f74e1b1fb1
commit
1b1488fda7
|
@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dwrite);
|
|||
#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_COLR_TAG DWRITE_MAKE_OPENTYPE_TAG('C','O','L','R')
|
||||
#define MS_SVG__TAG DWRITE_MAKE_OPENTYPE_TAG('S','V','G',' ')
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#define GET_BE_WORD(x) (x)
|
||||
|
@ -2069,6 +2070,9 @@ UINT32 opentype_get_glyph_image_formats(IDWriteFontFace4 *fontface)
|
|||
if (opentype_has_font_table(fontface, MS_COLR_TAG))
|
||||
ret |= DWRITE_GLYPH_IMAGE_FORMATS_COLR;
|
||||
|
||||
/* TODO: handle SVG and bitmap data */
|
||||
if (opentype_has_font_table(fontface, MS_SVG__TAG))
|
||||
ret |= DWRITE_GLYPH_IMAGE_FORMATS_SVG;
|
||||
|
||||
/* TODO: handle embedded bitmaps tables */
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#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_COLR_TAG DWRITE_MAKE_OPENTYPE_TAG('C','O','L','R')
|
||||
#define MS_SVG__TAG DWRITE_MAKE_OPENTYPE_TAG('S','V','G',' ')
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#define GET_BE_WORD(x) (x)
|
||||
|
@ -7436,7 +7437,10 @@ static DWORD get_face_glyph_image_formats(IDWriteFontFace4 *fontface)
|
|||
if (face_has_table(fontface, MS_COLR_TAG))
|
||||
ret |= DWRITE_GLYPH_IMAGE_FORMATS_COLR;
|
||||
|
||||
/* TODO: handle SVG and bitmap data */
|
||||
if (face_has_table(fontface, MS_SVG__TAG))
|
||||
ret |= DWRITE_GLYPH_IMAGE_FORMATS_SVG;
|
||||
|
||||
/* TODO: handle embedded bitmaps tables */
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue