KERNINGPAIR

The KERNINGPAIR structure defines a kerning pair.

typedef struct tagKERNINGPAIR { // kp 
    WORD  wFirst; 
    WORD  wSecond; 
    int  iKernAmount; 
} KERNINGPAIR; 
 

Members

wFirst
Specifies the character code for the first character in the kerning pair.
wSecond
Specifies the character code for the second character in the kerning pair.
iKernAmount
Specifies the amount this pair will be kerned if they appear side by side in the same font and size. This value is typically negative, because pair kerning usually results in two characters being set more tightly than normal. The value is given in logical units — that is, it depends on the current mapping mode.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.

See Also

Fonts and Text Overview, Font and Text Structures, GetKerningPairs