[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.FontFallbackBuilder

Class FontFallbackBuilder

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteFontFallbackBuilder

[Guid("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE")]
public class FontFallbackBuilder : ComObject, IDisposable, IUnknown
Inheritance
FontFallbackBuilder
Implements
Inherited Members

Constructors

FontFallbackBuilder(IntPtr)

Initializes a new instance of the FontFallbackBuilder class.

public FontFallbackBuilder(IntPtr nativePtr)

Parameters

nativePtr IntPtr

The native pointer.

Methods

AddMapping(UnicodeRange[], IntPtr[], FontCollection, string, string, float)

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)

Parameters

unicodeRanges UnicodeRange[]
targetFamilyNames IntPtr[]
fontCollection FontCollection
localeName string
baseFamilyName string
scale float

AddMapping(UnicodeRange[], IntPtr[], IntPtr, IntPtr, IntPtr, float)

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, IntPtr fontCollection, IntPtr localeName, IntPtr baseFamilyName, float scale)

Parameters

unicodeRanges UnicodeRange[]
targetFamilyNames IntPtr[]
fontCollection IntPtr
localeName IntPtr
baseFamilyName IntPtr
scale float

AddMapping(UnicodeRange[], string[], FontCollection, string, string, float)

Appends 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)

Parameters

ranges UnicodeRange[]

Unicode ranges that apply to this mapping.

targetFamilyNames string[]

List of target family name strings.

fontCollection FontCollection

Optional explicit font collection for this mapping.

localeName string

Locale of the context.

baseFamilyName string

Base family name to match against, if applicable.

scale float

Scale factor to multiply the result target font by.

AddMappings(FontFallback)

HRESULT AddMappings(IDWriteFontFallback* fontFallback)

public void AddMappings(FontFallback fontFallback)

Parameters

fontFallback FontFallback

CreateFontFallback()

HRESULT CreateFontFallback([out] IDWriteFontFallback** fontFallback)

public FontFallback CreateFontFallback()

Returns

FontFallback

Operators

explicit operator FontFallbackBuilder(IntPtr)

Performs an explicit conversion from IntPtr to FontFallbackBuilder.

public static explicit operator FontFallbackBuilder(IntPtr nativePointer)

Parameters

nativePointer IntPtr

Returns

FontFallbackBuilder