[ https://issues.apache.org/jira/browse/PDFBOX-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16687512#comment-16687512 ]
Darren Croft commented on PDFBOX-4378: -------------------------------------- Thanks. Using 2.0.12 I do not get the exception that I get with 2.0.8. There does seem to be a problem with hasGlyph in 2.0.12, but I'll open another issue for that. > 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 > Priority: Major > > 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-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org