xiangli@gila-fw.bioengr.uic.edu
2005-Apr-15 02:26 UTC
[Rd] inconsistent fonts generated in postscript file (PR#7795)
Full_Name: Xiang Li Version: 2.01 OS: WinXP Submission from: (NULL) (128.248.174.125) I am trying to use the font of "TT Courier New: bold" to get the equal size of letters. The "TT Courier New: bold" is the 11th font listed in the Rdevga file. You can just try a simple case: plot(1:10, 1:10, xlab = "XILMV", font.lab = 11) I save the plot in postscript format, and found the font in .ps file becomes Arial font. While I save the plot in JPEG or PNG format, everything is correct. Best Xiang
Prof Brian Ripley
2005-Apr-15 08:43 UTC
[Rd] inconsistent fonts generated in postscript file (PR#7795)
Please DO READ the documentation. Rdevga applies to *windows* devices: see its help page. On Windows, saving to JPEG or PNG is using a windows device. The way fonts are chosen in postscript() is described on its help page. It is *definitely* using not Arial but Helvetica, even though your viewer might do a substitution. There is a section in the FAQ on BUGS. Had you read it, you could have avoided wasting our time. Or even if you had read ?postscript. On Fri, 15 Apr 2005 xiangli@gila-fw.bioengr.uic.edu wrote:> Full_Name: Xiang Li > Version: 2.01 > OS: WinXP > Submission from: (NULL) (128.248.174.125) > > > I am trying to use the font of "TT Courier New: bold" to get the equal > size of letters. The "TT Courier New: bold" is the 11th font listed in > the Rdevga file. > > You can just try a simple case: > > plot(1:10, 1:10, xlab = "XILMV", font.lab = 11) > > I save the plot in postscript format, and found the font in .ps file > becomes Arial font. While I save the plot in JPEG or PNG format, > everything is correct.-- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Peter Dalgaard
2005-Apr-15 09:14 UTC
[Rd] inconsistent fonts generated in postscript file (PR#7795)
xiangli@gila-fw.bioengr.uic.edu writes:> Full_Name: Xiang Li > Version: 2.01 > OS: WinXP > Submission from: (NULL) (128.248.174.125) > > > I am trying to use the font of "TT Courier New: bold" to get the equal size of > letters. The "TT Courier New: bold" is the 11th font listed in the Rdevga file. > > You can just try a simple case: > > plot(1:10, 1:10, xlab = "XILMV", font.lab = 11) > > I save the plot in postscript format, and found the font in .ps file becomes > Arial font. While I save the plot in JPEG or PNG format, everything is correct.It's not a device independent font so you cannot expect it to be copied between devices. Look at the help page for postscript(). -- 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
Seemingly Similar Threads
- [LLVMdev] Implementing if-conversion as a GSoC 2015 project?
- [LLVMdev] Implementing if-conversion as a GSoC 2015 project?
- Re: [PATCH 0/2] resize: Split out the command line parsing into Cmdline
- [PATCH v3 2/6] erofs: convert to use i_blockmask()
- R2.1.0: X11 font at size 14 could not be loaded