Font::Font(constFontFamily*,REAL,INT,Unit) メソッド (gdiplusheaders.h)

FontFamily オブジェクト、サイズ、フォント スタイル、および測定単位に基づいて Font::Font オブジェクトを作成します。

構文

void Font(
  [in] const FontFamily *family,
  [in] REAL             emSize,
  [in] INT              style,
  [in] Unit             unit
);

パラメーター

[in] family

型: const FontFamily*

フォント ファミリを識別する文字列や、デザイン単位で測定されたフォント ファミリのテキスト メトリックなどの情報を指定する FontFamily オブジェクトへのポインター。

[in] emSize

種類: REAL

unit パラメーターで指定された単位で測定されるフォントの em サイズを指定する実数。

[in] style

型: INT

省略可能。 書体のスタイルを指定する整数。 この値は 、FontStyle 列挙体の要素、またはこれらの 2 つ以上の要素に適用されたビットごとの OR の結果である必要があります。 たとえば、FontStyleBold |FontStyleUnderline |FontStyleStrikeout は、3 つのスタイルの組み合わせとしてスタイルを設定します。 既定値は FontStyleRegular です。

[in] unit

種類: 単位

省略可能。 フォント サイズの測定単位を指定する Unit 列挙体の要素。 既定値は UnitPoint です。

戻り値

なし

必要条件

   
サポートされている最小のクライアント Windows XP、Windows 2000 Professional [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows 2000 Server [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー gdiplusheaders.h (Gdiplus.h を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

関連項目

フォント

FontFamily

FontStyle

単位

テキストとフォントの使用