Forgot password?
 Create new account
View 121|Reply 1

pdftex 是否会嵌入pdf的base 14字体

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2024-9-4 03:57:55 |Read mode
嵌入字体占用了某些 pdf 文件的很大空间
所以我想如果我们主要只使用 14 种基本字体中的一种,pdftex 生成的 pdf 的文件大小可能会比默认的“computer modern”字体小(因为这些字体最常用,根据 pdf 规范不需要嵌入)
  • Courier
  • Courier-Bold
  • Courier-BoldOblique
  • Courier-Oblique
  • Helvetica
  • Helvetica-Bold
  • Helvetica-BoldOblique
  • Helvetica-Oblique
  • Symbol
  • Times-Bold
  • Times-BoldItalic
  • Times-Italic
  • Times Roman
  • ZapfDingbats

我想知道 pdftex 是否会嵌入 14 种基本字体

然后我在文档中发现这可以由用户配置
https://texdoc.org/serve/updmap.cfg.man5.pdf/0
Screenshot 2024-09-04 035649.png

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2024-9-4 04:19:03
Last edited by hbghlyj at 2024-9-8 05:33:00哇,这个参数确实对 pdf 文件大小有影响
转到 texlive.net,然后输入
  1. \pdfmapline{=pdftexDownloadBase14 false}
  2. \documentclass{article}
  3. \usepackage{times}
  4. \begin{document}
  5. This is a test document using Times font without embedding it.
  6. \end{document}
Copy the Code

运行:11.3KB

刷新网页然后输入:
  1. \documentclass{article}
  2. \usepackage{times}
  3. \begin{document}
  4. This is a test document using Times font without embedding it.
  5. \end{document}
Copy the Code

运行:6.3KB

手机版Mobile version|Leisure Math Forum

2025-4-20 22:28 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list