You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Darren Croft (JIRA)" <ji...@apache.org> on 2018/11/14 02:35:00 UTC
[jira] [Created] (PDFBOX-4378) No glyph for U+1F609 in font
Darren Croft created PDFBOX-4378:
------------------------------------
Summary: No glyph for U+1F609 in font
Key: PDFBOX-4378
URL: https://issues.apache.org/jira/browse/PDFBOX-4378
Project: PDFBox
Issue Type: Bug
Components: FontBox
Affects Versions: 2.0.8
Environment: Java 8
Reporter: Darren Croft
I am trying to include unicode supplementary characters (emojis in this case) in a PDF document with an embedded font.
Initially I was using fonts that really didn't have the glyphs so the error message was correct. Now I have tried the Symbola font and the NotoEmoji-Regular font and I still get the error. For instance:
java.lang.IllegalArgumentException: No glyph for U+1F609 in font Symbola
at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.encode(PDCIDFontType2.java:404)
at org.apache.pdfbox.pdmodel.font.PDType0Font.encode(PDType0Font.java:342)
at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:323)
at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:352)
I have verified my font files have the glyph using FontForge.
Is there another step I need to take to use supplementary characters?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org