-
Notifications
You must be signed in to change notification settings - Fork 5.7k
phantomjs not rendering emoji characters correctly #12461
Comments
it display at web brow correctly, at mac os, with AppleColorEmoji but when render pdf, it dose't contain the emoji, i've install the ttf font , at my computer, set it by font-face @font-face {
font-family: 'AppleColorEmoji';
font-style: normal;
font-weight: normal;
src: url('font/emojione-apple.ttf');
}
body {
font-family: 'FZCHYJW', 'fzltxh', 'AppleColorEmoji', 'Georgia', 'arial', 'sans-serif';
} <span>©😊(*^__^*) 嘻嘻……🐦🌰বাংলা bn হিলিয়ামΩ</span> |
Did either of you find a solution to this? A specific set of fonts that solved it? |
no 囧 |
I used twemoji to fix it for me. Twemoji replaces emoji characters with images of the emojis. https://github.com/twitter/twemoji My code looks like this (it uses jQuery and Lodash which are optional)
I call that function like this
|
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
I'm trying to render a page that includes emoji characters into a PNG file.
However, the emoji characters (multibyte utf-8) are not displayed correctly.
I'm using phantomjs 1.9.7 (from homebrew) on OS X 10.9.
The page renders correctly in normal browsers.
The text was updated successfully, but these errors were encountered: