Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #251
| From | Helge Blischke <h.blischke@acm.org> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: Convert PCL Font Pitch to Postscript Font Height |
| Followup-To | comp.lang.postscript |
| Date | 2011-06-10 13:18 +0200 |
| Message-ID | <95ecs2FvaoU1@mid.individual.net> (permalink) |
| References | <433c7a05-9c30-4549-bb06-4da369649e35@s41g2000prb.googlegroups.com> |
Followups directed to: comp.lang.postscript
Ernschd wrote: > Currently I'm writing a PCL to Postscript-Converter. Unfortunately > I’m stuck on following Problem: > in PCL there are commands for selecting Font Pitch and Font Height. > Pitch is used for fixed-width Fonts, Height for proportional Fonts > (Pitch = number of characters per inch, Height = Height in PCL Points > (1/72 inch)). > > In Postscript I’m not able to choose the Font size when I’m receiving > the PCL Font Pitch. > > May I calculate the Height, or is there a according command in > Postscript? You could look at the /FontBBox entry in the font dictionary anc compute the scaling factor (ant thus the "font height") from the FontBBox and the pitch value you get from PCL. Note that this only makes sense for fixed pitch fonts. And note that the /isFixedPitch value in the /FontInfo dictionary isn't always reliable for determining if the font is fixed pitch or not. Helge
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
Convert PCL Font Pitch to Postscript Font Height Ernschd <svenhensel78@googlemail.com> - 2011-06-10 03:24 -0700 Re: Convert PCL Font Pitch to Postscript Font Height Helge Blischke <h.blischke@acm.org> - 2011-06-10 13:18 +0200 Re: Convert PCL Font Pitch to Postscript Font Height bonomi@host122.r-bonomi.com (Robert Bonomi) - 2011-06-15 21:22 -0500
csiph-web