[]
        
(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)
Public Sub AddMapping(ranges As UnicodeRange(), targetFamilyNames As String(), fontCollection As FontCollection, localeName As String, baseFamilyName As String, Optional scale As Single = 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)
Public Sub AddMapping(unicodeRanges As UnicodeRange(), targetFamilyNames As IntPtr(), fontCollection As FontCollection, localeName As String, baseFamilyName As String, scale As Single)
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)
Public Sub AddMapping(unicodeRanges As UnicodeRange(), targetFamilyNames As IntPtr(), fontCollection As IntPtr, localeName As IntPtr, baseFamilyName As IntPtr, scale As Single)
Parameters
Type Name Description
UnicodeRange[] unicodeRanges
IntPtr[] targetFamilyNames
IntPtr fontCollection
IntPtr localeName
IntPtr baseFamilyName
float scale