groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] New `papersize' keyword


From: Werner LEMBERG
Subject: Re: [Groff] New `papersize' keyword
Date: Mon, 17 Jun 2002 15:33:57 +0200 (CEST)

> I understand papersize sets both width and height, whereas the older two
> commands only set one of those each.
> 
> Am I looking in the right place?  src/libs/libgroff/font.cc's
> font::load_desc()?  It reads through the DESC file setting paperwidth,
> paperlength, unscaled_paperlength, and unscaled_paperwidth as it comes
> across commands.  But then at the end, in the normal flow of control
> path, it does
> 
>     paperwidth = int(unscaled_paperwidth * res + 0.5);
>     paperlength = int(unscaled_paperlength * res + 0.5);
> 
> Thinking about it a little more, unscaled_* would be un-initialised
> unless a papersize command was present.

Yep.  It's a bug.  Fixed in the CVS, thanks.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]