Class FontFallbackBuilder
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
[Guid("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE")]
public class FontFallbackBuilder : ComObject
- Inheritance
-
FontFallbackBuilder
Constructors
FontFallbackBuilder(nint)
public FontFallbackBuilder(nint nativePtr)
Parameters
nativePtr
nint
Methods
AddMapping(UnicodeRange[], int, string, int, FontCollection, string, string, float)
Appends a single mapping to the list. Call this once for each additional mapping.
public void AddMapping(UnicodeRange[] ranges, int rangesCount, string targetFamilyNames, int targetFamilyNamesCount, FontCollection fontCollection, string localeName, string baseFamilyName, float scale)
Parameters
ranges
UnicodeRange[]Unicode ranges that apply to this mapping.
rangesCount
intNumber of Unicode ranges.
targetFamilyNames
stringList of target family name strings.
targetFamilyNamesCount
intNumber of target family names.
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.
AddMappings(FontFallback)
Add all the mappings from an existing font fallback object.
public void AddMappings(FontFallback fontFallback)
Parameters
fontFallback
FontFallbackAn existing font fallback object.
CreateFontFallback(out FontFallback)
Creates the finalized fallback object from the mappings added.
public void CreateFontFallback(out FontFallback fontFallback)
Parameters
fontFallback
FontFallbackContains an address of a reference to the created fallback list.
Operators
explicit operator FontFallbackBuilder(nint)
public static explicit operator FontFallbackBuilder(nint nativePtr)
Parameters
nativePtr
nint