0

在为 PHP 与 TCPDF 一起使用准备自定义 OTF 字体和 AFM 文件(Postscript 类型 1 资源)时遇到问题。

PHP 以编程方式不打印插槽 fontfontge 有验证错误,所以我认为我的任务是用 fontforge 修复字体,但我不知道如何诚实。

使用fontforge打开源字体会给我以下验证错误:

 The glyph named mu is mapped to U+00B5
  But It's name indicates it should be mapped to U+03BC
 The glyph named Delta is mapped to U+2206
  But It's name indicates it should be mapped to U+0394
 The glyph named fi is mapped to U+F001
  But It's name indicates it should be mapped to U+FB01
 The glyph named fl is mapped to U+F002
  But It's name indicates it should be mapped to U+FB02

你们能帮我解决这个问题,让这些字符对我的 PHP 脚本“可见”吗?

谢谢

4

1 回答 1

0

我在跟踪错误时有点误导。验证错误仍然发生,但我不得不调整我的 TCPDF 对象

 $pdf->setFontSubsetting(false);

以防止压缩字体。

于 2015-02-10T09:53:44.687 回答