-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emoji support #427
Comments
You can use the custom segment support introduced with #356. See the RichTextEditor demo for an example how to show images inline. |
@otopba Could you clarify what you mean by "it is not displayed correctly?" |
@afester ok, thx |
How did you add the emojis? Can you share some code (like, the line where you actually add the emojis). |
@afester It appears if you copy and paste them into the javaFX window. Yes, there are problems with the font and that's why I wrote this post =) |
@otopba So would this be a clipboard and style codecs issue? Copy and paste is implemented via |
@JordanMartinez Emoji do not appear. Whether it's copying or reading from a file , it is simply not displayed. |
The font you are using does not have the required glyphs to render the UNICODE emojis. I have verified this with the JavaKeywords demo. I added the following line to
The result is what you also observed - the emoji is rendered as square: Now, I applied the following modifications to apply a font which contains glyphs for the Unicode Emojis (see also http://stackoverflow.com/a/16866962/1611055):
Now, the text is rendered like this: Note that all characters are now rendered with the OpenSansEmoji font - you might need to put the emojis into a separate segment and apply the font to this segment only, so that the rest of your document is rendered with your default font. |
Ok, I've added an initial page for that. |
Closing this issue as @afester has demonstrated why the glyphs weren't appearing and has written how to add support for them in the wiki. |
Hi!
I'd love to be able to display emoji.
Because right now, it is not displayed correctly. I will be very thankful for it!
The text was updated successfully, but these errors were encountered: