Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the axis ranges of a single item.
Syntax
HRESULT GetFontAxisRanges(
UINT32 listIndex,
[out] DWRITE_FONT_AXIS_RANGE *fontAxisRanges,
UINT32 maxFontAxisRangeCount,
[out] UINT32 *actualFontAxisRangeCount
);
Parameters
listIndex
Type: UINT32
Zero-based index of the font in the set.
[out] fontAxisRanges
Type: DWRITE_FONT_AXIS_RANGE*
List of axis value ranges to retrieve.
maxFontAxisRangeCount
Type: UINT32
The number of axis value ranges to retrieve.
[out] actualFontAxisRangeCount
Type: UINT32*
The actual number of axis ranges written or needed.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
| Return value | Description |
|---|---|
| E_NOT_SUFFICIENT_BUFFER | The buffer is too small, with actualFontAxisRangeCount set to the needed size. |
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 |