[Rd] text() with large cex parameter crashes X11() (PR#553)
Martyn Plummer
plummer@iarc.fr
Tue, 23 May 2000 15:30:21 +0200 (CEST)
On 23-May-00 Prof Brian Ripley wrote:
>> RLoadFont ignores the fact that it has failed to load a font
>> and returns a null pointer.
>
> I think it is SetFont that ignores the null pointer.
Yes.
>> If this works for you it is perhaps because you have the size 34 font
>> (the last resort) on your system.
>
> I at least have Helvetica in type 1 and so do have 120pt Helevetica
> (and have used such a system all the time I have been using X11).
>
>> R-devel gives the same result.
Apparently I had an error in the configuration file for the font server
(due to the fact that RPM kept the old configuration file when I upgraded)
As a result, all my 75dpi fonts were considered non-scaleable by the
font server. I have now fixed this and everything works.
> What should we do in this circumstance? Drop back to fixed? Try a
> smaller size? What sizes do you have? A quick look around on an R6.0
> system suggests that it has 8,10,12,14,18,24, which is what Solaris
> has as bitmaps too. And at this point basefontsize must have succeeded.
> So should we:
>
> try 34 then 24 then basefontsize.
>
> Should we issue a warning if the displayed fontsize differs by more than
> 10%, say, from that requested?
This seems like a good plan. If failure to load a large font is indicative
of a problem with the X setup then it would be a good idea to issue a warning.
Sorry to trouble everyone over what is basically a problem with my setup.
Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._