Adobe Illustrator中的ggplot2 pdf导入缺少字体AdobePiStd [英] ggplot2 pdf import in Adobe Illustrator missing font AdobePiStd

查看:1391
本文介绍了Adobe Illustrator中的ggplot2 pdf导入缺少字体AdobePiStd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了几个简单的ggplot2图并使用以下命令将它们保存为PDF文件:

  p < -  ggplot( plotobject,aes(x = Pos,y = Pval),res = 300)
ggsave(plot = p,height = 6,width = 6,dpi = 200,filename =〜/ example.pdf)

如果我现在在Adobe Illustrator中打开这个example.pdf,我得到以下错误:


缺少字体AdobePiStd。受影响的文本将使用
a替换字体显示。


ggplot2中是否有指定字体的方法是针对点/点),Adobe会理解或以其他方式获取此字体在Adobe中的工作方式?

/编辑只是为了澄清,文本/标签/标题都很好,它的字体丢失的点
/ edit2我得到了工作解决方案只需使用ggsave中的EPS输出,但仍然希望找到一种方法,以便能够直接在AI中打开/导入PDF格式的ggplot2图

解决方案

尽管更改AI使用的字体效果很好,但另一种方法是首先通过将参数useDingbats添加到ggsave命令来限制ggplot2使用Dingbats,例如:

  ggsave(plot = p,height = 6,width = 6,dpi = 200,filename =〜/ example.pdf,useDingbats = FALSE)


I created several simple ggplot2 plots and saved them to PDF files using the following commands:

p <- ggplot(plotobject, aes(x=Pos, y=Pval),res=300)
ggsave(plot=p,height=6,width=6,dpi=200, filename="~/example.pdf")

If I now open this example.pdf in Adobe Illustrator I get the following error:

The font AdobePiStd is missing. Affected text will be displayed using a substitute font.

Is there a way in ggplot2 to specify a font (I presume this is for the dots/points) that Adobe will understand or otherwise is there a way to get this font working in Adobe?

/edit just to clarify, the text/labels/titles are all just fine its the dots that are missing for the font /edit2 I got a working solution by just using the EPS output in ggsave, but still would love to find out a way to also be able to just open/import ggplot2 plots in PDF format directly in AI

解决方案

Although changing the fonts used by AI works well, an alternative is to restrict ggplot2 from using Dingbats in the first place by adding the argument 'useDingbats' to your ggsave command eg:

ggsave(plot=p,height=6,width=6,dpi=200, filename="~/example.pdf", useDingbats=FALSE)

这篇关于Adobe Illustrator中的ggplot2 pdf导入缺少字体AdobePiStd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆