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.
Checks if a typographic feature is available for a glyph or a set of glyphs.
Syntax
HRESULT CheckTypographicFeature(
IDWriteFontFace *fontFace,
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
[in, optional] WCHAR const *localeName,
DWRITE_FONT_FEATURE_TAG featureTag,
UINT32 glyphCount,
[in] UINT16 const *glyphIndices,
[out] UINT8 *featureApplies
);
Parameters
fontFace
The font face to read glyph information from.
scriptAnalysis
The script analysis for the script or font to check.
[in, optional] localeName
The locale name to check.
featureTag
The font feature tag to check.
glyphCount
The number of glyphs to check.
[in] glyphIndices
An array of glyph indices to check.
[out] featureApplies
An array of integers that indicate whether or not the font feature applies to each glyph specified.
Return value
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 |