Resolve imported PDF CFF device fonts from real OpenType faces
This commit is contained in:
1 parent
84d6f3ae51
commit
82e54894c4
14 files changed
+326
-38
No files matched your search
@@ -819,6 +819,38 @@ letterspace-fresh.log 和 device-pdftex-spaced-moved.log。
|
||||
[原版字距虚拟字体构造](https://github.com/TeX-Live/texlive-source/blob/fb6158926661cb7a7246b3a94a0cb170a9624d5a/texk/web2c/pdftexdir/pdftex.web#L16400-L16492)
|
||||
[原版格式所写字体字段](https://github.com/TeX-Live/texlive-source/blob/fb6158926661cb7a7246b3a94a0cb170a9624d5a/texk/web2c/pdftexdir/pdftex.web#L30627-L30696)
|
||||
|
||||
### 导入 PDF 的 OpenType CFF 设备字体
|
||||
|
||||
复用实际 SFNT 名称查找及版本化资源。未嵌入的 Type1 字典先
|
||||
查找同名 PFB/PFA,随后查找按名称编码的 CFF。CIDFontType0
|
||||
查找实际 CID-keyed CFF。预览追加真实 FontFile3 程序,分别使用
|
||||
Type1C 和 CIDFontType0C。原 PDF 的显式编码、CID 及字形位置
|
||||
进入现有渲染器。导出遵循原版设备字体引用。
|
||||
[PDF 字体程序的组织方式](https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.6.pdf)
|
||||
|
||||
三项定向回归通过,包括已有 Type 1 和 TrueType 预览路径。八组
|
||||
真实字形对照覆盖 Latin Modern 内建编码、外部重编码、OTC 非首
|
||||
字面、XeTeX,以及 Harano Aji Mincho 的 Adobe-Japan1 字符。
|
||||
常规、重编码、CID 三组的设备字体和整嵌对照,另加 OTC 与独立
|
||||
OTF 的对照,轮廓和位置均完全相同。日文字形「日」「本」「語」
|
||||
实际使用 CID 3284、3722、1952。
|
||||
[Harano Aji Fonts 20250811](https://github.com/trueroad/HaranoAjiFonts/tree/20250811)
|
||||
|
||||
四页会话更换真实字形命令时导出 PDF 字节相同。更换字形、
|
||||
移动插图和恢复资源都只更新第 2 页。后两次各复用 109 步。
|
||||
成功修订的 PDF、测量页面、SVG、来源映射和 aux 与独立全量
|
||||
一致。缺字体时编辑器保留上一版预览和 aux。
|
||||
|
||||
回执在 target/p3-imported-cff。receipt.json 的 SHA-256 为
|
||||
3cbabd540d9d923327995db60a9a305dcc70fa32a0d52d80d6fb57a257aecff3,
|
||||
revision.log 为 f3872ba1c987dc93c71314c1d35c84fd2320c096540fe7e70420115869fdb6c7。
|
||||
下一入口为 XeTeX 直接排版 CID CFF 时的导出语义。原样 Harano
|
||||
Aji 小样的两个词框和 144 DPI 灰度像素一致,xdvipdfmx 保留
|
||||
Adobe-Japan1-7,原生重编号并写成 Adobe-Identity-0。另有子集名
|
||||
和 ToUnicode 差异。证据在 next-xetex-cid-cff。Source Serif
|
||||
4.005 CFF2 的真实探针亦保留于 next-xetex-cff2,XeTeX 出 XDV,
|
||||
两个 PDF 导出均报告不支持。
|
||||
|
||||
### 导入 PDF 的 TrueType 设备字体
|
||||
|
||||
选页资源中的 TrueType 和 CIDFontType2 按 SFNT 内部的 PostScript
|
||||
|
||||
Reference in new issue
Block a user