• 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: Question on bitmap fonts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on bitmap fonts


  • Subject: Re: Question on bitmap fonts
  • From: Tobia Conforto <email@hidden>
  • Date: Tue, 1 Apr 2008 18:48:45 +0200

Thank you!
I hadn't thought of using gdb :-)

Now I only need to understand why y = -2.66400003 instead of -2.66666651


Tobia


On 1 Apr 2008, at 18:36, Aki Inoue wrote:
This is the information returned from the font.

(gdb) p glyphBBox
$30 = {
 origin = {
   x = 0,
   y = -2.66400003
 },
 size = {
   width = 6,
   height = 12
 }
}

(gdb) p ascender
$31 = 9.33333302
(gdb) p descender
$32 = 2.66666651
(gdb) p 12 - 2.66400003
$33 = 9.3359999699999996

The bounding box is for Capital Letter A with grave accent. As you can see, it's too close and sticking out a little.

Aki
_______________________________________________

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: Question on bitmap fonts
      • From: Aki Inoue <email@hidden>
References: 
 >Re: Question on bitmap fonts (From: Tobia Conforto <email@hidden>)

  • Prev by Date: Re: Alternating Button
  • Next by Date: Re: Question on bitmap fonts
  • Previous by thread: Re: Question on bitmap fonts
  • Next by thread: Re: Question on bitmap fonts
  • Index(es):
    • Date
    • Thread