Hi all,
Is it possible to use CM Roman for my plots and export them as PDF?
It feels like I have tried everything over the past two days, yet to no avail.
Ive installed Ghostscript and created a path to it. Ives installed all the extrafonts stuff, tried using embed_fonts...
The lates error I get is :
**** Error: Too many pages in Page tree.
No pages will be processed (FirstPage > LastPage).
Here is the example code:
library(extrafont)
font_install("fontcm")
loadfonts()
boxplot(EL_DA.......)
pdf(file = "C:/Users/.../Demo.pdf", family = "CM Roman", height = 5, width = 7)
par(family = "CM Roman")
dev.off()
embed_fonts(file = "C:/Users/.../Demo.pdf", outfile = "C:/Users/.../DemoCM.pdf")