GetKerningPairs (gdi32)
Last changed: anonymous

.
Summary

C# Signature:

[DllImport("gdi32.dll")]
static extern uint GetKerningPairs(IntPtr hdc, uint nNumPairs,
   [Out] KERNINGPAIR [] lpkrnpair);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some more!

Please note: it appears that the data returned is for the default unicode block only.

There may be a way to get more info by changing the code page ( strictly a guess on my part ).

The only way I've been able to get ALL the kerning data is to parse the files directly; not easy to say the least.

For more on uncode blocks see: http://pinvoke.net/default.aspx/gdi32/GetFontUnicodeRanges.html

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation