找回密码
 快速注册
搜索
查看: 12|回复: 1

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

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2024-9-4 03:57 |阅读模式
嵌入字体占用了某些 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

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2024-9-4 04:19
本帖最后由 hbghlyj 于 2024-9-8 05:33 编辑 哇,这个参数确实对 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}
复制代码

运行: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}
复制代码

运行:6.3KB

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 07:30

Powered by Discuz!

× 快速回复 返回顶部 返回列表