Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


Retrieves the character kerning pairs for the font that is currently selected in the specified device context.

int GetKerningPairs( 
   int nPairs, 
   LPKERNINGPAIR lpkrnpair  
) const;

Specifies the number of KERNINGPAIR structures pointed to by lpkrnpair. The function will not copy more kerning pairs than specified by nPairs.


Points to an array of KERNINGPAIR structures that receive the kerning pairs when the function returns. This array must contain at least as many structures as specified by nPairs. If this parameter is NULL, the function returns the total number of kerning pairs for the font.

Specifies the number of kerning pairs retrieved or the total number of kerning pairs in the font, if the function is successful. Zero is returned if the function fails or there are no kerning pairs for the font.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.