Font::GetLogFontA メソッド (gdiplusheaders.h)

Font::GetLogFontA メソッドは、LOGFONTA 構造体を使用して、この Font オブジェクトの属性を取得します。

構文

Status GetLogFontA(
  [in]  const Graphics *g,
  [out] LOGFONTA       *logfontA
);

パラメーター

[in] g

型: const Graphics*

表示デバイスの属性を含む Graphics オブジェクトへのポインター。

[out] logfontA

種類: LOGFONTA*

フォント属性を受け取る LOGFONTA 構造体変数へのポインター。

戻り値

種類: 状態

メソッドが成功した場合は、 Status 列挙の要素である Ok を返します。

メソッドが失敗した場合は、 Status 列挙体の他の要素のいずれかを返します。

要件

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

関連項目

フォント

グラフィックス

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