[]
IDWriteFontFallbackBuilder
[Guid("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE")]
public class FontFallbackBuilder : ComObject, IDisposable, IUnknown
Initializes a new instance of the FontFallbackBuilder class.
public FontFallbackBuilder(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
HRESULT AddMapping(DWRITE_UNICODE_RANGE* ranges, UINT32 rangesCount, [in] WCHAR** targetFamilyNames, UINT32 targetFamilyNamesCount, [in, optional] IDWriteFontCollection fontCollection, [in, optional] WCHAR* localeName, [in, optional] WCHAR* baseFamilyName, FLOAT scale)
public void AddMapping(UnicodeRange[] unicodeRanges, IntPtr[] targetFamilyNames, FontCollection fontCollection, string localeName, string baseFamilyName, float scale)
unicodeRanges UnicodeRange[]targetFamilyNames System.IntPtr[]fontCollection FontCollectionlocaleName stringbaseFamilyName stringscale floatHRESULT AddMapping(DWRITE_UNICODE_RANGE* ranges, UINT32 rangesCount, [in] WCHAR** targetFamilyNames, UINT32 targetFamilyNamesCount, [in, optional] IDWriteFontCollection fontCollection, [in, optional] WCHAR* localeName, [in, optional] WCHAR* baseFamilyName, FLOAT scale)
public void AddMapping(UnicodeRange[] unicodeRanges, IntPtr[] targetFamilyNames, IntPtr fontCollection, IntPtr localeName, IntPtr baseFamilyName, float scale)
unicodeRanges UnicodeRange[]targetFamilyNames System.IntPtr[]fontCollection System.IntPtrlocaleName System.IntPtrbaseFamilyName System.IntPtrscale floatAppends a single mapping to the list. Call this once for each additional mapping.
public void AddMapping(UnicodeRange[] ranges, string[] targetFamilyNames, FontCollection fontCollection, string localeName, string baseFamilyName, float scale = 1)
ranges UnicodeRange[]Unicode ranges that apply to this mapping.
targetFamilyNames string[]List of target family name strings.
fontCollection FontCollectionOptional explicit font collection for this mapping.
localeName stringLocale of the context.
baseFamilyName stringBase family name to match against, if applicable.
scale floatScale factor to multiply the result target font by.
HRESULT AddMappings(IDWriteFontFallback* fontFallback)
public void AddMappings(FontFallback fontFallback)
fontFallback FontFallbackHRESULT CreateFontFallback([out] IDWriteFontFallback** fontFallback)
public FontFallback CreateFontFallback()
Performs an explicit conversion from System.IntPtr to FontFallbackBuilder.
public static explicit operator FontFallbackBuilder(IntPtr nativePointer)
nativePointer System.IntPtr