Skip to content
Prev 361959 / 398506 Next

Saving .eps files with Times New Roman font

You may want to use the showtext package that converts fonts into
curves in your graph. Below is the sample code:


library(showtext)
## Load Times New Roman fonts on Windows
font.add("times", regular = "times.ttf", bold = "timesbd.ttf")
showtext.auto()

setEPS()
postscript("test.eps")
par(family = "times")
plot(rnorm(100), main = "Test Font")
dev.off()


Best,
Yixuan

2016-06-23 13:15 GMT-04:00 A A via R-help <r-help at r-project.org>: