-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
Fonts get corrupted after exporting ggplot from R to powerpoint #38
Comments
Thanks, Do you have the font installed on your mac? For me the used font is "Helvetica", what is yours? Could you try to change the font with something you are sure you have on your computer: https://davidgohel.github.io/rvg/articles/offcran/customizing.html#fonts-1 |
Thank you for you comment :) It is still not working. I have the font "Roboto" installed on my mac and used this font in my code. I still get the same output in powerpoint with corrupted texts.
New Code as used by the example in your linklibrary(officer) gg <- ggplot(mtcars, aes(x = mpg , y = wt, colour = qsec)) + geom_point() + theme_minimal() graph_editable <- dml(ggobj = gg, fonts = list(sans = "Roboto")) doc <- read_pptx() |
thanks I don't know what is happening for now... What client are you using? PowerPoint for mac? |
Yes PowerPoint for mac version 16.30. Before I had an older version and it also did not work with that version. |
When I am exporting my ggplots from R to powerpoint, my fonts get corrupted in powerpoint (fonts are filled). Herewith the code that gives the error in powerpoint and a picture of how the ggplot looks in powerpoint.
Session info
Example
The text was updated successfully, but these errors were encountered: