The GetKerningPairs function retrieves the character-kerning pairs for the currently selected font for the specified device context.
DWORD GetKerningPairs(
HDC hdc, // handle to device context
DWORD nNumPairs, // number of kerning-pairs to be retrieved
LPKERNINGPAIR lpkrnpair
// pointer to 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.
Windows NT: To get extended error information, call GetLastError.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Fonts and Text Overview, Font and Text Functions, KERNINGPAIR