Emojis: Difference between revisions

From Alpine Linux
Jump to navigation Jump to search
(Create page)
 
m (Remove cruft)
Line 18: Line 18:


You need either a user ~/.config/fontconfig/conf.d/01-noto-emoji.conf or systemwide /etc/fonts/local.conf with the following:
You need either a user ~/.config/fontconfig/conf.d/01-noto-emoji.conf or systemwide /etc/fonts/local.conf with the following:
'''Bold text'''
 
<pre>
<pre>
<?xml version="1.0"?>
<?xml version="1.0"?>

Revision as of 03:33, 4 February 2018

Emojis

Emojis are characters with pictures used to express ideas, things, places in one character.

Support

Currently Alpine Linux supports only one emoji font Noto Color Emoji only available on Edge which is used in the Android operating system. The latest version of Noto Color Emoji supports Emoji 5.0.

Currently, Edge has better emoji support for Firefox 58.x. Alpine 3.7.0 has Firefox 52.x which has broken emoji support but can be backported.

The currently Cairo 1.14.10 doesn't have color emoji support enabled so there may be no colored emojis on the terminal but show up in black and white.

Installation

sudo apk add font-noto-emoji

Configuration

You need either a user ~/.config/fontconfig/conf.d/01-noto-emoji.conf or systemwide /etc/fonts/local.conf with the following:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

 <alias>
   <family>sans-serif</family>
   <prefer>
     <family>Main sans-serif font name goes here</family>
     <family>Noto Color Emoji</family>
     <family>Noto Emoji</family>
   </prefer> 
 </alias>

 <alias>
   <family>serif</family>
   <prefer>
     <family>Main serif font name goes here</family>
     <family>Noto Color Emoji</family>
     <family>Noto Emoji</family>
   </prefer>
 </alias>

 <alias>
  <family>monospace</family>
  <prefer>
    <family>Main monospace font name goes here</family>
    <family>Noto Color Emoji</family>
    <family>Noto Emoji</family>
   </prefer>
 </alias>
</fontconfig>