• 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: Fastest way to predict bounding box for a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Fastest way to predict bounding box for a string (From: Ivan Kourtev <email@hidden>)
 >Re: Fastest way to predict bounding box for a string (From: Douglas Davidson <email@hidden>)
 >Re: Fastest way to predict bounding box for a string (From: Ivan Kourtev <email@hidden>)

  • Prev by Date: RE: subclassing a window
  • Next by Date: Re: Fastest way to predict bounding box for a string
  • Previous by thread: Re: Fastest way to predict bounding box for a string
  • Next by thread: Re: Fastest way to predict bounding box for a string
  • Index(es):
    • Date
    • Thread