IDWriteFontSet1::GetFilteredFontIndices(DWRITE_FONT_AXIS_RANGEconst*,UINT32,BOOL,UINT32*,UINT32,UINT32*) method (dwrite_3.h)

Retrieves all the item indices, filtered by the given ranges.

Syntax

HRESULT GetFilteredFontIndices(
        DWRITE_FONT_AXIS_RANGE const *fontAxisRanges,
        UINT32                       fontAxisRangeCount,
        BOOL                         selectAnyRange,
  [out] UINT32                       *indices,
        UINT32                       maxIndexCount,
  [out] UINT32                       *actualIndexCount
);

Parameters

fontAxisRanges

Type: DWRITE_FONT_AXIS_RANGE const *

List of axis value ranges to filter by.

fontAxisRangeCount

Type: UINT32

The number of axis value ranges to filter.

selectAnyRange

Type: BOOL

true if GetFilteredFontIndices should select any range; false if it should select the intersection of them all.

[out] indices

Type: UINT32*

An ascending array of indices, in the range 0 to IDwriteFontSet::GetFontCount minus 1.

maxIndexCount

Type: UINT32

The number of indices.

[out] actualIndexCount

Type: UINT32*

The actual number of indices written or needed, in the range 0 to IDwriteFontSet::GetFontCount minus 1.

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 actualIndexCount set to the needed size. The actualIndexCount will always be <= IDwriteFontSet::GetFontCount.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib