[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.FontFallbackBuilder.AddMapping

AddMapping Method

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

Appends a single mapping to the list. Call this once for each additional mapping.

Declaration
public void AddMapping(UnicodeRange[] ranges, string[] targetFamilyNames, FontCollection fontCollection, string localeName, string baseFamilyName, float scale = 1)
Parameters
Type Name Description
UnicodeRange[] ranges

Unicode ranges that apply to this mapping.

string[] targetFamilyNames

List of target family name strings.

FontCollection fontCollection

Optional explicit font collection for this mapping.

string localeName

Locale of the context.

string baseFamilyName

Base family name to match against, if applicable.

float scale

Scale factor to multiply the result target font by.

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)

Declaration
public void AddMapping(UnicodeRange[] unicodeRanges, IntPtr[] targetFamilyNames, FontCollection fontCollection, string localeName, string baseFamilyName, float scale)
Parameters
Type Name Description
UnicodeRange[] unicodeRanges
IntPtr[] targetFamilyNames
FontCollection fontCollection
string localeName
string baseFamilyName
float scale

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)

Declaration
public void AddMapping(UnicodeRange[] unicodeRanges, IntPtr[] targetFamilyNames, IntPtr fontCollection, IntPtr localeName, IntPtr baseFamilyName, float scale)
Parameters
Type Name Description
UnicodeRange[] unicodeRanges
IntPtr[] targetFamilyNames
IntPtr fontCollection
IntPtr localeName
IntPtr baseFamilyName
float scale