[]
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)
| 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. |
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)
| Type | Name | Description |
|---|---|---|
| UnicodeRange[] | unicodeRanges | |
| IntPtr[] | targetFamilyNames | |
| FontCollection | fontCollection | |
| string | localeName | |
| string | baseFamilyName | |
| float | scale |
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)
| Type | Name | Description |
|---|---|---|
| UnicodeRange[] | unicodeRanges | |
| IntPtr[] | targetFamilyNames | |
| IntPtr | fontCollection | |
| IntPtr | localeName | |
| IntPtr | baseFamilyName | |
| float | scale |