我需要在输出PDF中嵌入我在TeX文档中使用的字体.我正在使用pdflatex进行TeX处理,使用TextMate作为编辑器.
我找不到任何关于如何在PDF文档中嵌入我需要的字体的参考.
从 pdfTex 文档中,
5 设置字体
pdfTEX 可以使用 Type 1 和 TrueType 字体(在某种程度上也可以使用 OpenType 字体)。字体文件应该可用并嵌入文档中使用的所有字体。可以在 pdfTEX 中使用 METAFONT-- 生成的字体,但强烈建议不要使用这些字体(如果 Type 1 或 TrueType 格式中有等效字体),因为位图 Type 3 字体在(旧版本)中渲染效果非常差Adobe 阅读器。鉴于所有 Computer Modern 字体的 Type 1 版本都是免费的,并且能够使用标准 PostScript 字体,因此很少需要在 pdfTEX 中使用位图字体。
您可能需要安装 Type 1 Computer Modern 字体。现代 tex-live 有它们。如果您有较旧的 TeX 发行版,则有lmodern:
\documentclass{article}
\usepackage{lmodern}
\begin{document}
Hello, world.
\end{document}
Run Code Online (Sandbox Code Playgroud)
现在,如果您使用以下命令检查生成文档中的字体pdffonts:
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
SZVHEC+LMRoman10-Regular Type 1 yes yes no 4 0
Run Code Online (Sandbox Code Playgroud)
答对了。嵌入 1 类字体。