[R] Can fallback font be specified?
jszhao at yeah.net
Thu Mar 23 15:24:25 CET 2017
I am a Chinese R user. I hope to plot the following code with Chinese in
one font family, such as SimHei, but English in another font family,
such as Times New Roman.
plot(1:10, type = "n", xlab = "Hello \u4F60\u597D", family = "serif")
In my case, the system default font is "SimSun", so the above code
fallback "\u4F60\u597D", which is not in the font Times, to SimSun.
If I use:
plot(1:10, type = "n", xlab = "Hello \u4F60\u597D", family = "SimHei")
Then The "Hello" will in "SimHei" family, it's not as beautiful as Times.
Is it possible to specify the fallback font family in R? Any hints or
Thanks in advance.
system x86_64, mingw32
svn rev 72310
version.string R version 3.3.3 (2017-03-06)
nickname Another Canoe
 "LC_COLLATE=Chinese (Simplified)_China.936;LC_CTYPE=Chinese
More information about the R-help