From cab673f8b32562656d8f5c45baf6624e8fd2bd99 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 17 Dec 2022 18:37:32 +0300 Subject: [PATCH] include: Add recent DirectWrite API changes. Signed-off-by: Nikolay Sivov --- include/dwrite_3.idl | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/include/dwrite_3.idl b/include/dwrite_3.idl index 845754f6e3f..e67c8ab6364 100644 --- a/include/dwrite_3.idl +++ b/include/dwrite_3.idl @@ -473,6 +473,29 @@ interface IDWriteFontSet3 : IDWriteFontSet2 HRESULT GetFontSourceName(UINT32 index, WCHAR *buffer, UINT32 buffer_size); } +[ + local, + object, + uuid(eec175fc-bea9-4c86-8b53-ccbdd7df0c82) +] +interface IDWriteFontSet4 : IDWriteFontSet3 +{ + UINT32 ConvertWeightStretchStyleToFontAxisValues( + DWRITE_FONT_AXIS_VALUE const *input_axis_values, + UINT32 input_axis_count, + DWRITE_FONT_WEIGHT weight, + DWRITE_FONT_STRETCH stretch, + DWRITE_FONT_STYLE style, + float size, + DWRITE_FONT_AXIS_VALUE *output_axis_values); + HRESULT GetMatchingFonts( + WCHAR const *family_name, + DWRITE_FONT_AXIS_VALUE const *axis_values, + UINT32 axis_value_count, + DWRITE_FONT_SIMULATIONS allowed_simulations, + IDWriteFontSet4 **fonts); +} + [ local, object, @@ -795,6 +818,21 @@ interface IDWriteFontFace5 : IDWriteFontFace4 BOOL Equals(IDWriteFontFace *fontface); } +[ + local, + object, + uuid(c4b1fe1b-6e84-47d5-b54c-a597981b06ad) +] +interface IDWriteFontFace6 : IDWriteFontFace5 +{ + HRESULT GetFamilyNames( + DWRITE_FONT_FAMILY_MODEL font_family_model, + IDWriteLocalizedStrings **names); + HRESULT GetFaceNames( + DWRITE_FONT_FAMILY_MODEL font_family_model, + IDWriteLocalizedStrings **names); +} + typedef struct DWRITE_COLOR_GLYPH_RUN1 DWRITE_COLOR_GLYPH_RUN1; cpp_quote("struct DWRITE_COLOR_GLYPH_RUN1")