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.
Returns a complete list of OpenType features available for a script or font. If a feature is partially supported, then this method indicates that it is supported.
Syntax
HRESULT GetTypographicFeatures(
IDWriteFontFace *fontFace,
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
[in, optional] WCHAR const *localeName,
UINT32 maxTagCount,
[out] UINT32 *actualTagCount,
[out] DWRITE_FONT_FEATURE_TAG *tags
);
Parameters
fontFace
Type: IDWriteFontFace*
The font face to get features from.
scriptAnalysis
Type: DWRITE_SCRIPT_ANALYSIS
The script analysis for the script or font to check.
[in, optional] localeName
Type: const WCHAR*
The locale name to check.
maxTagCount
Type: UINT32
The maximum number of tags to return.
[out] actualTagCount
Type: UINT32*
The actual number of tags returned.
[out] tags
Type: DWRITE_FONT_FEATURE_TAG*
An array of OpenType font feature tags.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8.1 [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2012 R2 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | dwrite_2.h |
| Library | Dwrite.lib |
| DLL | Dwrite.dll |