On Oct 11, 2014, at 8:20 AM, Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
> 
> The Windows CDC class has a function:
> 
> DWORD GetKerningPairs( DWORD nNumPairs, LPKERNINGPAIR lpkrnpair );
> 
> 
> What would be the equivalent in a Cocoa class?  I cannot find any methods 
> that have kerning in their name.

Kerning can be much more complicated than can be represented by a simple 
pairing table. See Appleā€™s documentation for the Kerx table, specifically 
Format 1, which encodes a state machine: 
https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6kerx.html

So the question, as usual, becomes: what are you actually trying to do? I bet 
you could get it done via the NSTypesetter API.

--Kyle Sluder
_______________________________________________

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