IDWriteFontFace5::GetFontResource method (dwrite_3.h)
Retrieves the underlying font resource for this font face. You can use that to query information about the resource, or to recreate a new font face instance with different axis values.
Syntax
HRESULT GetFontResource(
[out] IDWriteFontResource **fontResource
);
Parameters
[out] fontResource
Type: IDWriteFontResource**
The address of a pointer to an IDWriteFontResource interface. On successful completion, the function sets the pointer to a newly created font resource object.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 16299 |
Minimum supported server | Windows 10 Build 16299 |
Target Platform | Windows |
Header | dwrite_3.h |
Library | Dwrite.lib |