Subject: Re: getFontHeight() not consistent (was)Re: Systematic error on display versus layout units.
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Fri Jun 29 2001 - 01:57:18 CDT
On Fri, 29 Jun 2001, Martin Sevior wrote:
>
> Well I have spent many more hours on this I've finally discovered that for
> our Type 1, Fonts, under gdk, getFontAscent() != getFontAscent() from the
> postscript afm file. Is this a bug in our fonts or a fundamental flaw in
> the concept of font Ascent and BBox box afm files?
>
> This is sufficient to screw up our pagination quite significantly between
> what is one the screen and what comes out on a page.
>
> What can be done about this? Well if it is a bug in the fonts, we could
> upgrade the fonts.
>
> If it is a fundamental difference, a solution would be be to cache the
> value of fontAscent and fontDescent from the gdk fonts in the Post Script
> font handling class and use that for calculating fontheights for
> postscript.
>
Whoops! This is not the problem at all. It appears I'd accidently arranged
for the font afm's to be read from the most recent set of Fonts whereas
the *.pfa's came from our ancient collection. They don't match hence the
incorrect printing.
Now that they do match we get perfect consistency on printing. OK I'll try
to fix these now.
This will solve the gnome-print pagination problem I think.
Martin
This archive was generated by hypermail 2b25 : Fri Jun 29 2001 - 01:57:36 CDT