From e00691e8096cc69e5651480155ebc61d9e079290 Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Wed, 21 Oct 2015 00:51:34 +0300 Subject: 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. --- libass/dwrite_c.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libass/dwrite_c.h') 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, -- cgit v1.2.3