FROM : John Stiles
DATE : Tue Apr 01 18:52:22 2008
If it's rounding, that would be pretty severe. I'd expect at least 6 or
7 viable digits.
Aki Inoue wrote:
>
> From the look of it, I think there is floating-point rounding involved.
>
> After all, the graphics system is treating it as a scalable font so
> the notion of bitmap (or pixel-based) font design doesn't apply.
>
> Aki
>
> On 2008/04/01, at 9:48, Tobia Conforto wrote:
>
>> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Tue Apr 01 18:52:22 2008
If it's rounding, that would be pretty severe. I'd expect at least 6 or
7 viable digits.
Aki Inoue wrote:
>
> From the look of it, I think there is floating-point rounding involved.
>
> After all, the graphics system is treating it as a scalable font so
> the notion of bitmap (or pixel-based) font design doesn't apply.
>
> Aki
>
> On 2008/04/01, at 9:48, Tobia Conforto wrote:
>
>> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Tobia Conforto | Mar 31, 18:23 | |
| Aki Inoue | Mar 31, 20:18 | |
| Tobia Conforto | Apr 1, 11:24 | |
| Tobia Conforto | Apr 1, 18:48 | |
| John Stiles | Apr 1, 18:52 | |
| Aki Inoue | Apr 1, 18:53 |






Cocoa mail archive

