1 つのマッピングをリストに追加します。 これは、追加のマッピングごとに 1 回呼び出します。
構文
HRESULT AddMapping(
DWRITE_UNICODE_RANGE const *ranges,
UINT32 rangesCount,
[in] WCHAR const **targetFamilyNames,
UINT32 targetFamilyNamesCount,
[in, optional] IDWriteFontCollection *fontCollection,
[in, optional] WCHAR const *localeName,
[in, optional] WCHAR const *baseFamilyName,
FLOAT scale
);
パラメーター
ranges
種類: DWRITE_UNICODE_RANGE*
このマッピングに適用される Unicode 範囲。
rangesCount
型: UINT32
Unicode 範囲の数。
[in] targetFamilyNames
型: const WCHAR**
ターゲット ファミリ名の文字列の一覧。
targetFamilyNamesCount
型: UINT32
ターゲット ファミリ名の数。
[in, optional] fontCollection
このマッピングの明示的なフォント コレクション (省略可能)。
[in, optional] localeName
型: const WCHAR*
コンテキストのロケール。
[in, optional] baseFamilyName
型: const WCHAR*
一致する基本ファミリ名 (該当する場合)。
scale
型: FLOAT
結果のターゲット フォントを乗算する倍率。
戻り値
型: HRESULT
このメソッドは、成功すると S_OK を返します。 そうでない場合は、HRESULT エラー コードを返します。
要件
| サポートされている最小のクライアント | Windows 8.1 [デスクトップ アプリ |UWP アプリ] |
| サポートされている最小のサーバー | Windows Server 2012 R2 [デスクトップ アプリ |UWP アプリ] |
| 対象プラットフォーム | Windows |
| ヘッダー | dwrite_2.h |
| Library | Dwrite.lib |
| [DLL] | Dwrite.dll |