[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.FontFace.GetGlyphIndices

GetGlyphIndices Method

GetGlyphIndices(int[])

Returns the nominal mapping of UCS4 Unicode code points to glyph indices as defined by the font 'CMAP' table.

Declaration
public short[] GetGlyphIndices(int[] codePoints)
Parameters
Type Name Description
int[] codePoints

An array of USC4 code points from which to obtain nominal glyph indices. The array must be allocated and be able to contain the number of elements specified by codePointCount.

Returns
Type Description
short[]

a reference to an array of nominal glyph indices filled by this function.

Remarks

Note that this mapping is primarily provided for line layout engines built on top of the physical font API. Because of OpenType glyph substitution and line layout character substitution, the nominal conversion does not always correspond to how a Unicode string will map to glyph indices when rendering using a particular font face. Also, note that Unicode variant selectors provide for alternate mappings for character to glyph. This call will always return the default variant.

GetGlyphIndices(int[], int, short[])

HRESULT IDWriteFontFace::GetGlyphIndices([In, Buffer] const unsigned int* codePoints,[In] unsigned int codePointCount,[Out, Buffer] unsigned short* glyphIndices)

Declaration
public void GetGlyphIndices(int[] codePoints, int codePointCount, short[] glyphIndices)
Parameters
Type Name Description
int[] codePoints
int codePointCount
short[] glyphIndices