Closed Chetnatl closed 2 years ago
Have you figured out how to fix this ?
@duong120798 no
Is anyone found solution for it ?
If your browser does support these native emojis and they only appear this way in an input, you may need to add these fonts to your inputs:
input {
font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji";
}
Even I was facing the same issue in chrome browser.But in firefox it was loading correctly. The problem might be that you have to include the file manually in chrome browser. Try this work-around and let me know, which worked for me:
@font-face { font-family: "TwemojiMozilla"; src: local("TwemojiMozilla"), url("./TwemojiMozilla.ttf") format("truetype"); font-weight: normal; } / Your Input Div/ .input { font-family: "TwemojiMozilla"; }
Even I was facing the same issue in chrome browser.But in firefox it was loading correctly. The problem might be that you have to include the file manually in chrome browser. Try this work-around and let me know, which worked for me:
- Download TwemojiMozilla.ttf file from https://github.com/mozilla/twemoji-colr/releases.
- Include it in JS file by import './TwemojiMozilla.ttf';
- Include it in your css component by
@font-face { font-family: "TwemojiMozilla"; src: local("TwemojiMozilla"), url("./TwemojiMozilla.ttf") format("truetype"); font-weight: normal; } / Your Input Div/ .input { font-family: "TwemojiMozilla"; }
- Hopefully, now it should load.
Great Its working, Thank you so much !
Using this font-family flag are now showing but on this input field not showing any numbers like 1 2 3 on chrome . Please suggest me what need for it.
Using this font-family flag are now showing but on this input field not showing any numbers like 1 2 3 on chrome . Please suggest me what need for it.
Please use this for cross browser support(Chrome, Firefox, Safari) and cross OS support (MAC, Windows)
.input { font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Open-Sans', "Apple Color Emoji", "TwemojiMozilla", "Noto Color Emoji", "Android Emoji", sans-serif; }
This will display characters, emoji's and numbers.
Using this font-family flag are now showing but on this input field not showing any numbers like 1 2 3 on chrome . Please suggest me what need for it.
Please use this for cross browser support(Chrome, Firefox, Safari) and cross OS support (MAC, Windows)
.input { font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Open-Sans', "Apple Color Emoji", "TwemojiMozilla", "Noto Color Emoji", "Android Emoji", sans-serif; }
This will display characters, emoji's and numbers.
It didn't work . Is there any other solution?
Is this issue fixed ?
Hi, I am using latest version (3.0.1) of emoji-mart. I have couple of issues in the app right now.
Kindly let me know if this issue is fixed or if you have any idea to get this issue fixed.
Thanks
Even I was facing the same issue in chrome browser.But in firefox it was loading correctly. The problem might be that you have to include the file manually in chrome browser. Try this work-around and let me know, which worked for me:
- Download TwemojiMozilla.ttf file from https://github.com/mozilla/twemoji-colr/releases.
- Include it in JS file by import './TwemojiMozilla.ttf';
- Include it in your css component by
@font-face { font-family: "TwemojiMozilla"; src: local("TwemojiMozilla"), url("./TwemojiMozilla.ttf") format("truetype"); font-weight: normal; } / Your Input Div/ .input { font-family: "TwemojiMozilla"; }
- Hopefully, now it should load.
This is working but the number was not working so you need to modify it like:
font-family: Arial,"TwemojiMozilla"
This will work with emoji and numbers
@Lakshmanan30111995 , I want to implement your solution. But I am developing Angular project. How can I add .ttf file and css? Please let me know.
@Lakshmanan30111995 , I want to implement your solution. But I am developing Angular project. How can I add .ttf file and css? Please let me know.
I have also worked with angular projects, here are the details: `/ Emoji Text / @font-face { font-family: "TwemojiMozilla"; src: local("TwemojiMozilla"), url("assets/fonts/TwemojiMozilla.ttf") format("truetype"); font-weight: normal; }
textarea, .emoji_text { font-family: "Poppins", "TwemojiMozilla"; }
/ Emoji Text /`
@Lakshmanan30111995 Thank you very much. But please tell me more details. I use emoji-mart in quill-editor and if I click flag emoji, flag emojis should be drawn on quill-editor.
@ajaythakkar Thank you very much. Please tell me more details.
Oh, @ajaythakkar , @Lakshmanan30111995 , Thank you very much. It works well. Great!
For some of the country's flags, it is showing the country name. but I want to show the flag image to the user.
See in below image: