使用 LaTeX
的 \documentclass[journal]{IEEEtran}
模板完成论文写作并完成提交后,系统报错:
This document has Type 3 fonts
查了一下,是因为 Python
的开源库 matplotlib
生成的图默认是 Type 3 fonts
的。一种解决方法是通过转换文件类型来间接转换,但是这样转换后的文字效果比较差。
最好的解决方法,转换成 Type 42:
import matplotlib
matplotlib.rcParams['pdf.fonttype'] = 42
matplotlib.rcParams['ps.fonttype'] = 42