Emojis: Difference between revisions

From Alpine Linux
m (→‎Support: remove ambiguous language)
m (Change link to Repositories page)
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Emojis =
'''Emojis''' are characters with pictures used to express ideas, things, places in one character.  Emojis are known to be used for creating and entering passwords and for [https://en.wikipedia.org/wiki/Emoji_domain registering domain names].
 
'''Emojis''' are characters with pictures used to express ideas, things, places in one character.


== Support ==
== Support ==


Currently Alpine Linux supports only one emoji font only available on [[Edge]] called Noto Color Emoji which is used in the Android operating system.  The latest version of Noto Color Emoji supports [https://unicode.org/emoji/charts/full-emoji-list.html Emoji 5.0] released around 2017.
Currently Alpine Linux supports only one emoji font only available on [[Repositories#Edge|edge]] called Noto Color Emoji which is used in the Android operating system.  The latest version of Noto Color Emoji supports [https://unicode.org/emoji/charts/full-emoji-list.html Emoji 5.0] released around 2017.


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.  Firefox can render some emojis based on the EmojiOne font without any changes to the system by the user.
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.  Firefox can render some emojis based on the EmojiOne font without any changes to the system by the user.


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.
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 ==
== Installation ==


  sudo apk add font-noto-emoji
  doas apk add font-noto-emoji


== Configuration ==
== Configuration ==
Line 53: Line 51:
</pre>
</pre>


== Testing ==
== Testing and bugs ==


You can go to https://getemoji.com/ and every emoji should be properly rendered on a patched Cairo (but without patched there are a few not fully colored).  The [https://en.wikipedia.org/wiki/Basic_Latin_(Unicode_block)#Emoji enclosing keycaps] are not properly rendered which is a known bug.  It should look like [http://i.imgur.com/6URHgWC.png this screenshot].
You can go to https://getemoji.com/ and every emoji should be properly rendered on a patched Cairo (but without patched there are a few not fully colored).  The [https://en.wikipedia.org/wiki/Basic_Latin_(Unicode_block)#Emoji enclosing keycaps] are not properly rendered which is a known bug.  It should look like [http://i.imgur.com/6URHgWC.png this screenshot].
DWM also has a bug if you have a program title with a emoji it will crash.  There is a patch available.  See [https://github.com/alpinelinux/aports/pull/3111 pull request].
[[Category:Infographics]]

Revision as of 01:59, 27 June 2022

Emojis are characters with pictures used to express ideas, things, places in one character. Emojis are known to be used for creating and entering passwords and for registering domain names.

Support

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

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. Firefox can render some emojis based on the EmojiOne font without any changes to the system by the user.

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

doas 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>

Testing and bugs

You can go to https://getemoji.com/ and every emoji should be properly rendered on a patched Cairo (but without patched there are a few not fully colored). The enclosing keycaps are not properly rendered which is a known bug. It should look like this screenshot.

DWM also has a bug if you have a program title with a emoji it will crash. There is a patch available. See pull request.