get_kerning_pairs


unsigned get_kerning_pairs(handle device,
                           unsigned count,
                           close_pair* pairs)

This function obtains the kerning pairs of the currently selected font.

Parameters

handle device

The handle of the device context.

unsigned count

The maximum number of pairs able to be held in the specified buffer. If more kerning pairs exist than can be placed in the buffer, an error is raised.

close_pair* pairs

A pointer to a buffer to hold the kerning pairs of the font. If null is specified, the total number of kerning pairs in the font is returned.

Return

unsigned

Zero An error occurred.
Other The number of pairs returned or the total number of kerning pairs in the font.