[Rd] X11 warnings about "wrong" font sizes (PR#840)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
06 Feb 2001 16:33:19 +0100


tov@ece.cmu.edu writes:

> Hi.  This is cosmetic in nature, yet annoying as the warning points
> to the wrong source:  On a screen running on an X server with 100 DPI,
> I always got warnings about X11 using the wrong font size:
> 
> > x11()
> Warning message: 
> X11 used font size 17 when 12 was requested 
> 
> Then I looked at the code and X11 is _not_ to be blamed for this:
> R resets the requested font size for 100 DPI screens!  There should be
> no warning.  (At least not a warning that makes people wonder whether
> they misconfigured the font server again.)
                                     ===== :-)

Thanks. (Funny... I could have sworn I zapped that 100DPI
special-casing a while back. Maybe I forgot to commit?)

> 
> The patch below moves Peter's scaling equation up, before the font
> cache check and directly writes to size.  Thus it's true that:
>   variable size == (IS_100DPI ? scaled requested size : requested size)
>   variable pixelsize == (font available ? size (same as above)
> 						: size of allocated font)
> 
> Regards,
>   -tom

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._