[]
        
(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
object
FontFallbackBuilder
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

FontFallbackBuilder(IntPtr)

Initializes a new instance of the FontFallbackBuilder class.

public FontFallbackBuilder(IntPtr nativePtr)

Parameters

nativePtr System.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 System.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 System.IntPtr[]
fontCollection System.IntPtr
localeName System.IntPtr
baseFamilyName System.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 System.IntPtr to FontFallbackBuilder.

public static explicit operator FontFallbackBuilder(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

FontFallbackBuilder