Closed Iceberry-qdd closed 4 months ago
Hi @Iceberry-qdd, this is potentially caused by the variation selector U+FE0F. In order to correctly compile the emoji following the Noto Emoji font scripts, the code point U+FE0F is removed from the filenames.
As for the flag emojis (e.g., 1F1E6-1F1E8
), I'm not entirely sure why they are failing.
I'm wondering if perhaps the project https://github.com/meyer/emoji-db fits your use case better... :)
Ok, i'll try another repository, thanks for reply. I'm really like apple color emojis.
Hi 👋, I found this repository which is very useful for me. I am using this font to replace the system default emoji font in my web development, but when I replace it, I found that some of the emojis are not showing up. My question is, is this the reason for the font, or something else?
Which os are you using?
What did you do?
step 1
I downloaded this font to my asset folder and referenced it in css using
@font-face
like this:I then typed windows keyboard emoji in the input box and found it worked as expected.
step 2
I'm making an emoji panel using Vue. So I referenced https://cdn.jsdelivr.net/npm/emoji-datasource-apple@15.0.0/+esm as the list of emoji metadata that the emoji panel needs to contain.
The structure of this file is a json list with
unified
fields for each item:step 3
I use the following code to generate emoji unicode from javascript:
When I use
v-for
to display all the items, I found that some of the emoji slots are empty (empty because I use try-catch syntax to do the processing, otherwise it will have an error), and more of them are missing, even the👁
emoji is not there, I am very puzzled, and I would like to ask if there is something wrong with my code or theApple coloe emoji.ttf
file?I would be very grateful if you could answer!
Here is my emoji panel code (simplified with some logic):
The rendering is below, with a lot of emoji missing because they report errors:![image](https://github.com/samuelngs/apple-emoji-linux/assets/59782644/cf114d51-e6f5-4247-bc1f-9eb6484e6b5a)
When an error is reported (with the try-catch protection removed), the console output is as follows:
Here are some missing emoji unifieds that I used the try-catch statement and printed in the catch: