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

Mikhail Semionenko edited comment on PDFBOX-3810 at 5/29/17 7:08 AM:
---------------------------------------------------------------------

I upgraded to version 2.0.6 (2.0.4 old).
Yes, it seems that the problem was in the wrong parameter of the getFontByName 
method (needed "AppleColorEmoji"). I was able to get TrueTypeFont. 

My fixed code:
File file = getResourceAsFile("Apple Color Emoji.ttc");                         
                                                        
TrueTypeCollection collection = new TrueTypeCollection(file);                   
        
TrueTypeFont ttffont = collection.getFontByName("AppleColorEmoji");
PDFont font = PDType0Font.load(document, ttffont, true);

My code stopped falling. The font is correctly defined and allows to learn the 
sizes of symbols. But the symbols are not displayed.


was (Author: semionenko):
I upgraded to version 2.0.6 (2.0.4 old).
Yes, it seems that the problem was in the wrong parameter of the getFontByName 
method (needed "AppleColorEmoji"). I was able to get TrueTypeFont. 


> Is it possible to show emoji icons from the iOS library in the PDF document?
> ----------------------------------------------------------------------------
>
>                 Key: PDFBOX-3810
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3810
>             Project: PDFBox
>          Issue Type: Wish
>            Reporter: Mikhail Semionenko
>
> I want to show emoji (like 😍) in the pdf document. Is it possible to do 
> something like that?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to