pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4378) No glyph for U+1F609 in font
Date Wed, 14 Nov 2018 06:55:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16686145#comment-16686145
] 

Tilman Hausherr commented on PDFBOX-4378:
-----------------------------------------

Please try with the current version, please attach the font or link to it, and please include
the simplest possible code to reproduce the problem.

> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message