search for: u597d

Displaying 4 results from an estimated 4 matches for "u597d".

2010 Jun 30
2
plain text in Chinese can not be set
...de, the font to use for Latin text is correct. I also tested postscript(), and it did as what was expected. Any suggestions? Thanks in advance! Regards, Jinsong ### the code to reproduce my question ### pdf("test_0.pdf", fonts = c("GB1")) plot(1:10) text(5,4, "\u4F60\u597D", family="GB1", font = 0) ## bold text(5,5, "is 'hello' in Chinese", font = 0) ## normal dev.off() pdf("test_1.pdf", fonts = c("GB1")) plot(1:10) text(5,4, "\u4F60\u597D", family="GB1", font = 1) ## bold text(5,5, "is ...
2011 Apr 21
0
automatic font selection, please help
...", "GBK", "") postscriptFonts(song = song) postscript("test.ps", height = 7, width =7, family = "Times", fonts = c("song"), horizontal = FALSE, onefile = FALSE, paper = "special") plot(1:10, xlab = "") mtext("\u4F60\u597D", family="song", font = 1, side = 1, line = 2) text(1,1, "\u4F60\u597D", family="song", font = 1) text(3,1, "\u4F60\u597D", family="song", font = 2) text(5,1, "\u4F60\u597D", family="song", font = 3) text(7,1, "\u4F60\...
2010 Jun 29
5
More than two font in a plot
...character in a plot, and than save it in PostScript format. I have read the article titled "Non-Standard Fonts in PostScript and PDF Graphics", especially the section about CJK fonts. I also tried the code: > pdf("chinese.pdf", width=3, height=1) > grid.text("\u4F60\u597D", y=2/3, gp=gpar(fontfamily="CNS1")) > grid.text("is 'hello' in (Traditional) Chinese", y=1/3) > dev.off() however, it's not valid with postscript(). It seems that postscript() need to set family in postscirpt(..., family = "CNS1"). Then all the...
2011 Oct 22
3
Sweave, cairo_pdf, CJK, ghostscript
I have had some fun in the last few days trying to put together an annotated map of China with R and some public GIS data: http://sourceforge.net/projects/outmodedbonsai/files/snpMatrix%20next/1.17.7.11/China_Choropleth_Maps.pdf/download It is done, and rather nice... there are a few issues: - the default pdf() device cannot do CJK with embedded fonts - and cairo_pdf() is not hooked up to