On Oct 11, 2014, at 12:47 PM, Scott Ribe <scott_r...@elevated-dev.com> wrote:

> So Kyle's question is: what are you trying to accomplish with that table?


We have model code that handles the kerning and it is currently being driven by 
a Windows view and controller and gives the results we need.

My task is to make the Mac view and controller to capture the selected font. 
The rendering of the font is all good. So now I just need kerning data that I 
can put into a KERNINGPAIR structure and my task is complete. 

I have read the reference from Kyle that describes the 'kerx' extended kerning 
table which is supported on OS X 10.7 and iOS 7 onward. Our deployment is 10.5 
and greater.

I suspect that the 'kern' table will give what I need. 

How does one get a pointer to a 'kern' table for a specified font?

-rags

typedef struct tagKERNINGPAIR {
    WORD wFirst;
    WORD wSecond;
    int  iKernAmount;
} KERNINGPAIR, *LPKERNINGPAIR;

wFirst
The character code for the first character in the kerning pair.
wSecond
The character code for the second character in the kerning pair.
iKernAmount
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 
specified in logical units; that is, it depends on the current mapping mode.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to