In postscript graphs (pointsize = 10, different sizes in graph adjusted via cex) I would like to use different font sizes but get the following warning message: Warning messages: 1: X11 used font size 8 when 9 was requested 2: X11 used font size 8 when 7 was requested 3: X11 used font size 8 when 5 was requested This is probably not a R but a X11 problem, nevertheless I would be most obliged for any help how to actually use font sizes 9, 7, and 5 and others. Sincerely Wolfgang Waser
On 21 Mar 2005, at 11:09 am, Wolfgang Waser wrote:> In postscript graphs (pointsize = 10, different sizes in graph > adjusted via > cex) I would like to use different font sizes but get the following > warning > message: > > Warning messages: > 1: X11 used font size 8 when 9 was requested > 2: X11 used font size 8 when 7 was requested > 3: X11 used font size 8 when 5 was requested > > This is probably not a R but a X11 problem, nevertheless I would be > most > obliged for any help how to actually use font sizes 9, 7, and 5 and > others.X11 default fonts are usually bitmaps, and not scalable, so if you don't have the 9, 7 and 5 point versions of the font installed, it may be automatically reverting to the nearest decent point size. Have you tried changing the font to something that is scalable, like a PostScript or TrueType font? You can also change the X server's configuration so that it will attempt to scale bitmap fonts, but the results are not pretty, so I never enable that. Tim -- Dr Tim Cutts Informatics Systems Group, Wellcome Trust Sanger Institute GPG: 1024D/E3134233 FE3D 6C73 BBD6 726A A3F5 860B 3CDD 3F56 E313 4233
Wolfgang Waser <wolfgang.waser at rz.hu-berlin.de> writes:> In postscript graphs (pointsize = 10, different sizes in graph adjusted via > cex) I would like to use different font sizes but get the following warning > message: > > Warning messages: > 1: X11 used font size 8 when 9 was requested > 2: X11 used font size 8 when 7 was requested > 3: X11 used font size 8 when 5 was requested > > This is probably not a R but a X11 problem, nevertheless I would be most > obliged for any help how to actually use font sizes 9, 7, and 5 and others.The main issue is to have them... If you are using nonscalable fonts, the available sizes are 8,10,11, etc. Some distributions turn off scalable fonts because they tend to look ugly compared to the ones that have been tuned to a particular gridsize, but you can generally turn them on again by configuring the fontserver. E.g. I have catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled, /usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/100dpi:unscaled, in /etc/X11/fs/config and dropping the :unscaled should allow the server to generate the in-between sizes, at the expense of appearance. Also, notice that the X11 font sizes are only relevant for postscript graphics if you are using dev.print() or dev.copy2eps(). If you use the postscript() driver directly, X11 never comes into play. (There might be a minimum legible size, though. I forget.) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907