Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Helge Blischke Newsgroups: comp.lang.postscript Subject: Re: Convert PCL Font Pitch to Postscript Font Height Followup-To: comp.lang.postscript Date: Fri, 10 Jun 2011 13:18:24 +0200 Lines: 24 Message-ID: <95ecs2FvaoU1@mid.individual.net> References: <433c7a05-9c30-4549-bb06-4da369649e35@s41g2000prb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: individual.net 0WTRKFCStLwwV8vsXEt+Dw+PmqRCxpUbRTl3s3QH46xXm+4tqK Cancel-Lock: sha1:xcbp3LAN0YphFzfrorfV8yHAWEg= User-Agent: KNode/0.99.01 Xref: x330-a1.tempe.blueboxinc.net comp.lang.postscript:251 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