Re: Font scaling and string size problem?!?
Re: Font scaling and string size problem?!?
- Subject: Re: Font scaling and string size problem?!?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 17 Sep 2005 08:53:31 +0200
On 17.09.2005, at 07:15, glenn andreas <email@hidden> wrote:
So as a result, the metrics of a font changes with the size in a non-
linear form for both practical and aesthetic reasons, so it would be
extremely rare if a string in 60pt text were exactly 6 times wider
than 10pt text (sometimes you're lucky if it is 6 time taller).
Well I have been lucky to find 3 of these rare fonts where "a string
in 60pt text is exactly 6 times wider than 10pt text",
I found that:
[[NSFont userFontOfSize: fsize ] advancementForGlyph: [ffs
glyphWithName: @"m" ]].width == 0.833008 * fsize
regardless for fsize. Tested for fsize = 3 ... 60pt in steps of 3 on
Panther.
Same for systemFontOfSize: CGS LucidaGrande with a constant factor of
0.933594.
Same for CGS Times-Roman with a constant factor of 0.777832.
Could you tell me a font which actually has this non-linear behaviour
you were mentioning?
Kind regards,
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden