我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

DOMPDF字体工作但看起来非常奇怪

I'm adding a custom font to DOMPDF and even though the font itself is working, the characters are just random :-S See image below for what I mean.

enter image description here

Has anyone had anything like this before?

Solution: See my answer below

For anyone else having the same problem I found the solution:

  1. DO NOT use an online converter to generate the afm/ufm file.
  2. You must use the load_fonts.php file that comes with DOMPDF.

近期文章

  • 将获取数字从数据库转换为单词
  • Laravel 5.1 - 相对模型的模型观察者
  • 卷曲功能在godaddy上花费了太多时间
  • MySQL:opencart中的“连接太多”
  • 如何获得所选产品的价格并在桌面上显示?
  • 登录会话读取flatfile
  • X-Frame-Options拒绝加载不允许跨源框架
  • 换行和丢失瑞典字母
  • 将mysql查询转换为magento模型格式
  • 将Codeigniter .htaccess文件转换为IIS 8的等效web.config文件
  • current_url()返回错误的URL,如codeigniter中页眉中的favicon地址
  • CakePHP使用find()从模型中检索数据,数组键无法正确显示
  • 带左连接的cakephp select语句
  • 如何用php处理用户创建的内容?
  • Barebones PHP代码没有产生预期的结果
  • 以编程方式在线创建用户并同时标记凭据到期
  • 我的密码被哈希并保存在数据库中,但它与用户在文本框中提供的密码无法匹配
  • 如何用从另一个php页面收到的字符替换数组中的字符
  • 大量黑名单检查会导致脚本超时
  • laravel 5中的ajax请求

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华