Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!well!jef From: jef@well.sf.ca.us (Jef Poskanzer) Newsgroups: comp.lang.postscript Subject: Re: Variable characters Message-ID: <21633@well.sf.ca.us> Date: 13 Nov 90 07:57:14 GMT References: <21630@well.sf.ca.us> Reply-To: Jef Poskanzer Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal Lines: 16 In the referenced message, shiva@well.sf.ca.us (Kenneth Porter) wrote: }fontscale = 1 }do { } calculate character bbox } fontscale = fontscale * desired_bbox / calculated_bbox }} while abs(desired_bbox-calculated_bbox) > acceptable_error That's an excellent idea, except for one thing: if you want precisely-sized characters that are BIG, you'll get a limitcheck. I think you have to add in some code to put a cap on the trial font scale, and then run some tests to find a good value for the cap. --- Jef Jef Poskanzer jef@well.sf.ca.us {ucbvax, apple, hplabs}!well!jef A professor is one who talks in someone else's sleep.