字体 Helvetica 中没有 U+000D 的字形 [英] No glyph for U+000D in font Helvetica

查看:88
本文介绍了字体 Helvetica 中没有 U+000D 的字形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为带有 boxable 的 pdfbox 解决这个问题.

我进入 table.draw

Helvetica 字体中没有 U+000D 的字形

怎么办.我正在用可装箱的东西搭建桌子

解决方案

该错误告诉您用于填充表格的字符串包含 CR(回车)字符.

不要在这些字符串中使用控制字符(如 CR、LF、TAB、...),因为您的软件堆栈不会将它们解释为换行符之类的意思;相反,它试图将其解释为它失败的字体中的字形.

如果您需要在可装箱的表格中换行,请尝试使用


代替.根据他们的README,他们支持

<块引用>

单元格内容中的 HTML 标签(不是全部!


    1. )

      How to solve this for pdfbox with boxable.

      I am getting in table.draw as

      No glyph for U+000D in font Helvetica

      What to do.I am building table with boxable

      解决方案

      That error tells you that your strings you use to fill the tables contain CR (carriage return) characters.

      Do not use control characters (like CR, LF, TAB, ...) in those string as your software stack does not interpret them to mean something like a line break; instead it tries to interpret it as a glyph in the font which it fails doing.

      If you need to break lines in boxable tables, try using <p> or <br> instead. According to their README, they support

      HTML tags in cell content (not all! <p>,<i>,<b>,<br>,<ul>,<ol>,<li>)

      这篇关于字体 Helvetica 中没有 U+000D 的字形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆