Share via


IDWriteGdiInterop::CreateFontFromLOGFONT, méthode (dwrite.h)

Crée un objet de police qui correspond aux propriétés spécifiées par la structure LOGFONT .

Syntaxe

HRESULT CreateFontFromLOGFONT(
  [in]  LOGFONTW const *logFont,
  [out] IDWriteFont    **font
);

Paramètres

[in] logFont

Type : const LOGFONTW*

Structure contenant une description de police compatible avec GDI.

[out] font

Type : IDWriteFont**

Lorsque cette méthode est retournée, contient l’adresse d’un pointeur vers un objet IDWriteFont nouvellement créé en cas de réussite ; sinon, NULL.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

   
Client minimal pris en charge Windows 7, Windows Vista avec SP2 et Mise à jour de plateforme pour Windows Vista [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2, Windows Server 2008 avec SP2 et Platform Update pour Windows Server 2008 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête dwrite.h
Bibliothèque Dwrite.lib
DLL Dwrite.dll

Voir aussi

IDWriteGdiInterop