10-10-2024, 12:13 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
Emojis and supplemental fonts
I've been reading a downloaded fanfic on my kobo which includes emojis. With the default font, the emojis don't display at all. I've tried a few solutions with varying results, but am still looking for something better if anyone has found a good way to handle this.
What I've tried so far:
The questions I'm currently wondering about based on these experiments:
|
10-10-2024, 12:42 AM | #2 |
Wizard
Posts: 1,361
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
You don't set the emoji font "as the primary font for the book".
You set the emoji font where the emojis are used. Import the emoji font file into the ebook. In your CSS you would then add this... PHP Code:
PHP Code:
|
10-10-2024, 05:01 PM | #3 |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
I embedded NotoEmoji and NotoColorEmoji in the epub file, and tweaked the css based on what you shared. But when I send the book to my Kobo, it still just shows up with blank spaces where the emojis should be.
This is my code currently: CSS: Code:
@font-face { font-family: 'Noto Emoji'; font-weight: normal; font-style: normal; src: url('../Fonts/NotoEmoji-Regular.ttf'); } @font-face { font-family: 'Noto Emoji Color'; font-weight: normal; font-style: normal; src: url('../Fonts/NotoColorEmoji-Regular.ttf'); .emoji { font-family: "Noto Emoji"; } .emojicolor { font-family: "Noto Emoji Color"; } Code:
<p>Testing out some text here!</p> <p>The following is tagged for Noto Color Emoji: <span class="emojicolor">🙏😤😭✨🥺🥰</span></p> <p>The following is tagged for Noto Regular Emoji: <span class="emoji">🙏😤😭✨🥺🥰</span></p> To be honest this isn't a huge deal it's just bugging the heck out of me that I can't figure out how to make it work. |
10-10-2024, 05:27 PM | #4 |
Wizard
Posts: 1,431
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
Did you set the primary font as Publisher Default? If you set another font as the primary font, KEPUB will ignore all font face changes in the book and display everything with your selected primary font.
|
10-10-2024, 05:54 PM | #5 |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
Yeah, the main font face for the text on my Kobo is set to Publisher Default.
|
10-10-2024, 05:56 PM | #6 |
Bibliophagist
Posts: 40,573
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Could you post the name of the fanfic or attach a copy. It's a lot easier when you can see the entirety of the ebook.
|
10-10-2024, 06:27 PM | #7 |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
I'm using this epub to test things out:
Emoji Test - Ima Pseudonym.epub It's an epub but I have the KoboUtilities plugin in Calibre, which auto-converts it to a kepub when it transfers over to my Kobo. |
10-10-2024, 06:36 PM | #8 | |
Wizard
Posts: 1,361
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
The two most critical are 1 Naked text in the section001.xhtml file, 2 CSS entries that have not been closed off Not critical, but don't use <br> for line spacing. Use something like <p> </p> Try fixing all the errors first. If not sure what or how to fix, let us know. But start off by running CheckBook and EPUBCheck for a list of errors. |
|
10-10-2024, 08:00 PM | #9 |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
Thank you!! I'm not a coder and didn't spot the errors, so it was very helpful to have them pointed out. I corrected the errors and checked everything again. New result: Noto Color Emojis still display as blank spaces, but with the revised tagging, Noto Emojis display correctly!
The revised file: Emoji Test - Ima Pseudonym.epub The code in Calibre: And how it appears on my Kobo: Happy to have this working for now. I will go through the main text and set it up the same way so it will display emojis where they occur. I'm left with the following questions:
I'll keep investigating, and if anyone else looks into it I'd be interested to hear what you come up with. Thanks for the help so far! |
10-10-2024, 08:21 PM | #10 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
Afraid I spoke too soon.
The exact process that worked for the test document is failing in the regular document. I imported the NotoEmoji font file, but am getting the following error when I try and reference the font in the CSS: Quote:
|
|
10-10-2024, 09:41 PM | #11 |
Wizard
Posts: 1,361
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
I've played around with this for the last half an hour and, like you, I was unable to render the colour emoji's.
I re-downloaded the font file from google fonts, in case your copy was corrupt. No luck, still did not display. I then changed to a different colour font file. I tried this one... https://github.com/adobe-fonts/emoji...jiOneColor.otf And then also used Segoe UI Emoji from Windows. Both of these worked, but not the noto colour file. No idea why that particular font file won't work. I've attached my epub if you want to check it out. |
10-10-2024, 10:50 PM | #12 |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
Thanks for sharing the epub! Been using it for further testing.
Currently that Segoe UI Emoji font has provided the best overall solution. I loaded it into the main fonts folder on my Kobo, and then selected it as the main font for the whole book. The text is readable and all the emojis render! They show up black and white despite rendering in color when I open the same book in Calibre, but the important part is that they show up and I don't have to go through the entire text to tag each instance of an emoji showing up. I'll keep messing with this in the future but I'm very glad to have the Segoe font as a solid and functional option. Thanks for mentioning it! |
10-10-2024, 11:39 PM | #13 |
Wizard
Posts: 1,431
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
Is it possible that Kobo simply doesn't support colour emoji yet? You might try filing a bug report on the Kobo site, and maybe a firmware update will fix it some day.
|
Tags |
fonts, kobo |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clara HD Supplemental fonts not working as expected | jcotton42 | Kobo Reader | 10 | 10-11-2024 05:09 PM |
Supplemental Files | JimS59 | Library Management | 2 | 05-05-2022 10:47 PM |
[Kobo] Unicode emoticons / emojis are not displayed | Iridium | Devices | 5 | 09-23-2021 12:38 AM |
Conversion Fail Due to Emojis? | JimmXinu | Conversion | 2 | 12-04-2019 02:02 PM |
kindle and emojis? | Trigun | Amazon Kindle | 21 | 03-15-2018 09:27 PM |