You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just switched to an M1, Big Sur Macbook. I need to embed the fonts of a number of pdfs that include plots from ggplot2.
However, when I run the embed_fonts() function, it returns the following error message: GhostScript was not found
With Homebrew, I've installed Ghostscript. I have also reinstalled extrafont and extrafontdb, restarted RStudio, and then run font_import() and loadfonts() again. None of this solves the error message.
Have you experienced this problem? I wonder if it's because of the change to the M1's Apple Silicon?
I have also switched from using bash to zsh in my terminal. Could that have affected this?
A reprex:
> library(ggplot2)
> library(extrafont)
> (plot <- ggplot(cars, aes(x = speed, y = dist)) +
+ geom_point()
+ )
> ggsave("test_plot.pdf", plot)
Saving 5.19 x 6.87 in image
> embed_fonts(file = "test_plot.pdf", outfile = "test_plot_embedded.pdf")
Error in embedFonts(file = file, format = format, outfile = outfile, options = paste(paste("-I", :
GhostScript was not found
The text was updated successfully, but these errors were encountered:
wrmadsen
changed the title
"GhostScript was not found" on Big Sur Mac
"GhostScript was not found" on M1 Big Sur Mac
Apr 3, 2021
This also worked for me (the direct download) - and embedFonts didn't need telling where to find the GhostScript afterwards. thanks for highlighting the solution. And thanks William for a v cool package.
I just switched to an M1, Big Sur Macbook. I need to embed the fonts of a number of pdfs that include plots from
ggplot2
.However, when I run the
embed_fonts()
function, it returns the following error message:GhostScript was not found
With Homebrew, I've installed
Ghostscript
. I have also reinstalledextrafont
andextrafontdb
, restarted RStudio, and then runfont_import()
andloadfonts()
again. None of this solves the error message.Have you experienced this problem? I wonder if it's because of the change to the M1's Apple Silicon?
I have also switched from using
bash
tozsh
in my terminal. Could that have affected this?A reprex:
The text was updated successfully, but these errors were encountered: