IDWriteFontResource::GetAxisNames method (dwrite_3.h)
Retrieves the localized names of a font axis.
Syntax
HRESULT GetAxisNames(
UINT32 axisIndex,
IDWriteLocalizedStrings **names
);
Parameters
axisIndex
Type: UINT32
Font axis, from 0 to GetFontAxisCount minus 1.
names
Type: IDWriteLocalizedStrings**
The address of a pointer to an IDWriteLocalizedStrings interface. On successful completion, the function sets the pointer to a newly created localized strings object.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The font author may not have supplied names for some font axes. The localized strings will be empty in that case.
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 |