CM Roman font embed in PDF !

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")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.