• 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: descender for glyph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: descender for glyph


  • Subject: Re: descender for glyph
  • From: Moray Taylor <email@hidden>
  • Date: Wed, 4 Feb 2004 23:46:33 +0000

Hi,

You should be able to use NSFont's "afmDictionary", and then calculate the descender yourself, I'm pretty sure that information is in the font's AFM.

Cheers

Moray

Am 04.02.2004 um 22:55 schrieb email@hidden:

NSFont's boundingRectForGlyph: ignores everything below the baseline.

It does? According to the docs it shouldn't, I think.

If I use an NSAttributedString and get its bounds, they are for the largest characters of its font, not for the characters of this string.

And I haven't found a way to determine the base line inside that bounds yet. :-(

Sorry, can't help. Looks like Font metrics and typography could use some more documentation though ...


bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: descender for glyph
      • From: email@hidden
    • Re: descender for glyph
      • From: Andreas Mayer <email@hidden>
References: 
 >descender for glyph (From: email@hidden)
 >Re: descender for glyph (From: Andreas Mayer <email@hidden>)

  • Prev by Date: App crashes while loading nibs?
  • Next by Date: Re: Unwanted retain
  • Previous by thread: Re: descender for glyph
  • Next by thread: Re: descender for glyph
  • Index(es):
    • Date
    • Thread