IDWriteFontFace1.GetKerningPairAdjustments

<summary> Retrieves the kerning pair adjustments from the font's kern table. </summary> <param name="glyphCount">Number of glyphs to retrieve adjustments for.</param> <param name="glyphIndices">Array of glyph id's to retrieve adjustments for.</param> <param name="glyphAdvanceAdjustments">Returned advances in font design units for each glyph. The last glyph adjustment is zero.</param> <remarks> This is not a direct replacement for GDI's character based GetKerningPairs, but it serves the same role, without the client needing to cache them locally. It also uses glyph id's directly rather than UCS-2 characters (how the kern table actually stores them) which avoids glyph collapse and ambiguity, such as the dash and hyphen, or space and non-breaking space. </remarks> <remarks> Newer fonts may have only GPOS kerning instead of the legacy pair table kerning. Such fonts, like Gabriola, will only return 0's for adjustments. This function does not virtualize and flatten these GPOS entries into kerning pairs. </remarks> <returns> Standard HRESULT error code. </returns>

interface IDWriteFontFace1
extern (Windows)
HRESULT
GetKerningPairAdjustments
(
UINT32 glyphCount
,
const(UINT16)* glyphIndices
,
)

Meta