IDWriteTextLayout::SetFontCollection メソッド

フォント コレクションを設定します。

構文

virtual HRESULT SetFontCollection(
    IDWriteFontCollection * fontCollection,
    DWRITE_TEXT_RANGE  textRange
) = 0;

パラメーター

  • fontCollection
    設定するフォント コレクション。

  • textRange
    この変更を適用するテキスト範囲。

戻り値

メソッドが成功した場合は、S_OK が返されます。 それ以外の場合は、エラー コードが返されます。HRESULT.

要件

クライアントの最小要件

Windows 7, Windows Vista SP2 および Windows Vista 用のプラットフォーム更新プログラム

サーバーの最小要件

Windows Server 2008 R2, Windows Server 2008 SP2 および Windows Server 2008 用のプラットフォーム更新プログラム

ヘッダー

Dwrite.h

ライブラリ

Dwrite.lib

DLL

Dwrite.dll

参照

IDWriteTextLayout