include: Add DWRITE_MAKE_FONT_AXIS_TAG macro.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-10-01 08:45:13 +03:00 committed by Alexandre Julliard
parent 33f1de3ed7
commit 6db24a2349
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,12 @@ typedef struct DWRITE_FONT_PROPERTY
WCHAR const *localeName; WCHAR const *localeName;
} DWRITE_FONT_PROPERTY; } DWRITE_FONT_PROPERTY;
cpp_quote("#ifdef __cplusplus")
cpp_quote("#define DWRITE_MAKE_FONT_AXIS_TAG(a,b,c,d) (static_cast<DWRITE_FONT_AXIS_TAG>(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d)))")
cpp_quote("#else")
cpp_quote("#define DWRITE_MAKE_FONT_AXIS_TAG(a,b,c,d) (DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))")
cpp_quote("#endif")
typedef enum DWRITE_FONT_AXIS_TAG typedef enum DWRITE_FONT_AXIS_TAG
{ {
DWRITE_FONT_AXIS_TAG_WEIGHT = 0x74686777, /* 'wght' */ DWRITE_FONT_AXIS_TAG_WEIGHT = 0x74686777, /* 'wght' */