Thread: Libra Colour Emojis and supplemental fonts
View Single Post
Old 10-09-2024, 11:42 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,613
Karma: 9500498
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:
@font-face {
  
srcurl(NotoEmoji-Regular.ttf);
  
font-family"Noto Emoji";
  
font-weightnormal;
  
font-stylenormal;
  
font-stretchnormal;
  }
.
emoji {
  
font-family"Noto Emoji"sans-serif;

Then in the body, you would have this...

PHP Code:
<span class="emoji">&#55357;�</span> 
Karellen is offline   Reply With Quote