The GetKerningPairs function retrieves the character-kerning pairs for the currently selected font for the specified device context.
DWORD GetKerningPairs(
HDC hdc, |
// handle of device context |
DWORD nNumPairs, |
// number of kerning-pairs to be retrieved |
LPKERNINGPAIR lpkrnpair |
// address of kerning-pair array |
); |
If the function succeeds, the return value is the number of kerning pairs returned.
If the function fails, the return value is zero. To get extended error information, call GetLastError.