Re: Kerning Pairs
Re: Kerning Pairs
- Subject: Re: Kerning Pairs
- From: Kyle Sluder <email@hidden>
- Date: Sat, 11 Oct 2014 09:16:16 -0700
On Oct 11, 2014, at 8:20 AM, Raglan T. Tiger <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden
References: | |
| >Kerning Pairs (From: "Raglan T. Tiger" <email@hidden>) |