• 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: Font scaling and string size problem?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font scaling and string size problem?!?


  • Subject: Re: Font scaling and string size problem?!?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 16 Sep 2005 19:17:00 +0200


On 16.09.2005, at 15:25, glenn andreas <email@hidden> wrote:


On Sep 16, 2005, at 5:12 AM, Ondra Cada wrote:

Hello all,

I've always thought that fonts scale linearly, in the sense that if
"XYZ" in 10pt font happens to be an inch wide, then in the same
font scaled to 20pt it would be two inches. Right?

Absolutely not - fonts have never scaled that way, ever (even going back to the earliest days of movable type).

The idea is that when a font is small, in order to be readable, it
needs to have slightly different metrics & stroke weights (and even
shapes in many cases) than when it is made large.  It  is true,
however, that 32 point text "appears" to be twice the size of 16
point text, but it was all about appearances...

Needless to say, this makes taking a document that has, say, 16 point
text at 72 dpi and rendering it at 300 dpi tricky (since that make it
be in 48 point  text, but then the metrics are all different, so
various line layout adjustments have to be made to make everything
look right).

You are absolutely right.
And in the good old times (when fonts where made of lead) this was certainly the case.


But I have just tried the advancementForGlyph: 'm' in userFontOfSize: 4 - 24 in steps of 0.5.

In a real font this advancement is always 0.222168 * fontSize.
In the corresponding screenFont this varies between 0 (fontSize < 5) and from 0.125 (fontSize = 8) to 0.25 (fontSize = 12)



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


  • Prev by Date: Re: NSDatePicker / NSDatePickerCell
  • Next by Date: PNGs
  • Previous by thread: Re: Font scaling and string size problem?!?
  • Next by thread: Re: Font scaling and string size problem?!?
  • Index(es):
    • Date
    • Thread