summaryrefslogtreecommitdiffstats
path: root/libass/dwrite_c.h
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2015-10-21 00:51:34 +0300
committerOleg Oshmyan <chortos@inbox.lv>2015-10-23 02:36:53 +0300
commite00691e8096cc69e5651480155ebc61d9e079290 (patch)
treeb097d3c1b8b560b08b6688330434b5c746d12407 /libass/dwrite_c.h
parent018cfe7b2cbbcd10e7860e7903564b5d5a0b1d16 (diff)
downloadlibass-e00691e8096cc69e5651480155ebc61d9e079290.tar.bz2
libass-e00691e8096cc69e5651480155ebc61d9e079290.tar.xz
fontselect: find fonts with PostScript outlines by PostScript name
Fonts without PostScript outlines (such as TrueType fonts) are unaffected, and their PostScript names continue to be ignored when searching for fonts. This matches the behavior of GDI and hence VSFilter.
Diffstat (limited to 'libass/dwrite_c.h')
-rw-r--r--libass/dwrite_c.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libass/dwrite_c.h b/libass/dwrite_c.h
index ac7f4a2..ffdf110 100644
--- a/libass/dwrite_c.h
+++ b/libass/dwrite_c.h
@@ -59,6 +59,15 @@ typedef enum DWRITE_FACTORY_TYPE {
DWRITE_FACTORY_TYPE_ISOLATED
} DWRITE_FACTORY_TYPE;
+typedef enum DWRITE_FONT_FACE_TYPE {
+ DWRITE_FONT_FACE_TYPE_CFF = 0,
+ DWRITE_FONT_FACE_TYPE_TRUETYPE,
+ DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION,
+ DWRITE_FONT_FACE_TYPE_TYPE1,
+ DWRITE_FONT_FACE_TYPE_VECTOR,
+ DWRITE_FONT_FACE_TYPE_BITMAP,
+ DWRITE_FONT_FACE_TYPE_UNKNOWN
+} DWRITE_FONT_FACE_TYPE;
typedef enum DWRITE_FONT_SIMULATIONS {
DWRITE_FONT_SIMULATIONS_NONE = 0x0000,
@@ -319,7 +328,7 @@ DECLARE_INTERFACE_(IDWriteFontFace,IUnknown)
#endif
/* IDWriteFontFace methods */
- STDMETHOD(dummy1)(THIS);
+ STDMETHOD_(DWRITE_FONT_FACE_TYPE, GetType)(THIS) PURE;
STDMETHOD(GetFiles)(THIS_
UINT32 *numberOfFiles,