We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi.. When I run the below the code, and open pdf file, the font is not embeded. Please advise
Sys.setenv(R_GSCMD = "C:/GhostScript/gs10.01.1/bin/gswin64c.exe")
library(extrafont)
extrafont::font_import()
loadfonts(device = "all")
library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point() + ggtitle("Title text goes here") + theme(text = element_text(size = 16, family = "Impact"))
ggsave("myplot.pdf", width = 4, height = 4)
embed_fonts("myplot.pdf")
however when i used ggsave("myplot.pdf", width = 4, height = 4, device = cairo_pdf)
it works perfectly
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi.. When I run the below the code, and open pdf file, the font is not embeded. Please advise
Sys.setenv(R_GSCMD = "C:/GhostScript/gs10.01.1/bin/gswin64c.exe")
library(extrafont)
extrafont::font_import()
Register the fonts with R
loadfonts(device = "all")
library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point() +
ggtitle("Title text goes here") +
theme(text = element_text(size = 16, family = "Impact"))
ggsave("myplot.pdf", width = 4, height = 4)
embed_fonts("myplot.pdf")
however when i used
ggsave("myplot.pdf", width = 4, height = 4, device = cairo_pdf)
it works perfectly
The text was updated successfully, but these errors were encountered: