• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Kerning Pairs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Kerning Pairs
      • From: "Raglan T. Tiger" <email@hidden>
References: 
 >Kerning Pairs (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: Custom NSImageView with CALayer for Selection Rect not Scaling...
  • Next by Date: Re: Kerning Pairs
  • Previous by thread: Kerning Pairs
  • Next by thread: Re: Kerning Pairs
  • Index(es):
    • Date
    • Thread