IDWriteTextAnalyzer2::CheckTypographicFeature method (dwrite_2.h)

Checks if a typographic feature is available for a glyph or a set of glyphs.

Syntax

HRESULT CheckTypographicFeature(
  IDWriteFontFace         *fontFace,
  DWRITE_SCRIPT_ANALYSIS  scriptAnalysis,
  WCHAR const             *localeName,
  DWRITE_FONT_FEATURE_TAG featureTag,
  UINT32                  glyphCount,
  UINT16 const            *glyphIndices,
  UINT8                   *featureApplies
);

Parameters

fontFace

The font face to read glyph information from.

scriptAnalysis

The script analysis for the script or font to check.

localeName

The locale name to check.

featureTag

The font feature tag to check.

glyphCount

The number of glyphs to check.

glyphIndices

An array of glyph indices to check.

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

   
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

See also

IDWriteTextAnalyzer2