• 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: "Raglan T. Tiger" <email@hidden>
  • Date: Sun, 12 Oct 2014 07:36:19 -0600


On Oct 11, 2014, at 12:47 PM, Scott Ribe <email@hidden> 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 (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: Kyle Sluder <email@hidden>
References: 
 >Kerning Pairs (From: "Raglan T. Tiger" <email@hidden>)
 >Re: Kerning Pairs (From: Kyle Sluder <email@hidden>)
 >Re: Kerning Pairs (From: "Raglan T. Tiger" <email@hidden>)
 >Re: Kerning Pairs (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: XPCService not getting launched from app
  • Next by Date: NSView and Changing View Bounds...
  • Previous by thread: Re: Kerning Pairs
  • Next by thread: Re: Kerning Pairs
  • Index(es):
    • Date
    • Thread