Article View: comp.lang.postscript
Article #3654Re: Variable characters
From: Jef Poskanzer
Date: Tue, 13 Nov 1990 07:57
Date: Tue, 13 Nov 1990 07:57
16 lines
1133 bytes
1133 bytes
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.
Technical Details
Message-ID:
<21633@well.sf.ca.us>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!well!jefReferences:
<21630@well.sf.ca.us>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 <jef@well.sf.ca.us> Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal Lines: 16