IDWriteGdiInterop1::CreateFontFromLOGFONT method
Creates a font object that matches the properties specified by the LOGFONT structure.
Syntax
HRESULT CreateFontFromLOGFONT( [in] LOGFONTW logFont, [in, optional] IDWriteFontCollection *fontCollection, [out] IDWriteFont **font );
Parameters
- logFont [in]
-
Type: LOGFONTW
Structure containing a GDI-compatible font description.
- fontCollection [in, optional]
-
Type: IDWriteFontCollection*
The font collection to search. If NULL, the local system font collection is used.
- font [out]
-
Type: IDWriteFont**
Receives a newly created font object if successful, or NULL in case of error.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
See also
Show: