IDWriteFontFallbackBuilder

<summary> Builder used to create a font fallback definition by appending a series of fallback mappings, followed by a creation call. </summary> <remarks> This object may not be thread-safe. </remarks>

Members

Functions

AddMapping
HRESULT AddMapping(const(DWRITE_UNICODE_RANGE)* ranges, UINT32 rangesCount, const(WCHAR*)* targetFamilyNames, UINT32 targetFamilyNamesCount, IDWriteFontCollection fontCollection = null, const(WCHAR)* localeName = null, const(WCHAR)* baseFamilyName = null, FLOAT scale = 1.0f)

<summary> Appends a single mapping to the list. Call this once for each additional mapping. </summary> <param name="ranges">Unicode ranges that apply to this mapping.</param> <param name="rangesCount">Number of Unicode ranges.</param> <param name="localeName">Locale of the context (e.g. document locale).</param> <param name="baseFamilyName">Base family name to match against, if applicable.</param> <param name="fontCollection">Explicit font collection for this mapping (optional).</param> <param name="targetFamilyNames">List of target family name strings.</param> <param name="targetFamilyNamesCount">Number of target family names.</param> <param name="scale">Scale factor to multiply the result target font by.</param> <returns> Standard HRESULT error code. </returns>

AddMappings
HRESULT AddMappings(IDWriteFontFallback fontFallback)

<summary> Appends all the mappings from an existing font fallback object. </summary> <param name="fontFallback">Font fallback to read mappings from.</param> <returns> Standard HRESULT error code. </returns>

CreateFontFallback
HRESULT CreateFontFallback(IDWriteFontFallback* fontFallback)

<summary> Creates the finalized fallback object from the mappings added. </summary> <param name="fontFallback">Created fallback list.</param> <returns> Standard HRESULT error code. </returns>

Meta