Re: Fastest way to predict bounding box for a string
Re: Fastest way to predict bounding box for a string
- Subject: Re: Fastest way to predict bounding box for a string
- From: Douglas Davidson <email@hidden>
- Date: Mon, 6 Feb 2006 17:31:53 -0800
On Feb 6, 2006, at 4:48 PM, Ivan Kourtev wrote:
Does your suggestion mean that if I take the bounding boxes of a
certain string in sizes 5, 10, and 20, of the same font, then the
widths and heights of these bounding boxes will be related to each
other roughly as 5:10:20 with any small inconsistencies arising
from the changing thickness of the drawing pen?
I thought of this approach briefly but dismissed it because I think
that's not how it works in the real typesetting world (my knowledge
of which is admittedly also limited).
The relationship is not necessarily precisely linear in general, but
it's pretty close, so you can make a very good guess that way, and
likewise for improving subsequent guesses as necessary. You can save
the simulated annealing for functions that actually have maxima and
minima...
Douglas Davidson
_______________________________________________
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