-
-
Save Cosmicist/834f03acf52566690950 to your computer and use it in GitHub Desktop.
How to get Emoji in your Ubuntu Terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
1. Download the Android Jelly Bean fonts and the Symbola font: | |
https://www.dropbox.com/s/tvtzcnzkvbe0nrt/jelly-bean-fonts.zip | |
http://users.teilar.gr/~g1951d/Symbola707.zip | |
2. unzip the files and put AndroidEmoji.ttf and Symbola.ttf (and any of the other fonts that strike your fancy) | |
in your ~/.fonts/ directory | |
3. run `fc-cache -f`. You can check to make sure the new fonts | |
were installed with `fc-list`. You'll probably want to grep the copious output for Symbola or Emoji | |
4. Put this file in ~/.config/fontconfig/fonts.conf (>=12.10) or ~/.fonts.conf (<=12.04) | |
5. Close all terminal windows, restart terminal | |
6. In your terminal Profile Preferences, set your font to 'Monospace' | |
If you're not using ubuntu's default terminal (gnome-terminal) then figure | |
out how to set your terminal font to 'monospace' | |
If you don't like the Ubuntu Mono font, change it to whatever you prefer, | |
see comment in the file below | |
If you're going through various layers of ssh and tmux (don't use gnu screen) and such, | |
you'll need to make sure you've got your locale set up properly with an encoding of | |
UTF-8 at every link in the chain. | |
If you prefer Symbola to the Android Emoji glyphs, you can put that first in your config. | |
Symbola is used here to fill in some glyphs missing from the Android Emoji. | |
--> | |
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<!-- Font families --> | |
<alias> | |
<family>serif</family> | |
<prefer> | |
<family>DejaVu Serif</family> | |
<family>Android Emoji</family> | |
<family>Symbola</family> | |
</prefer> | |
</alias> | |
<alias> | |
<family>sans-serif</family> | |
<prefer> | |
<family>DejaVu Sans</family> | |
<family>Android Emoji</family> | |
<family>Symbola</family> | |
</prefer> | |
</alias> | |
<alias> | |
<family>monospace</family> | |
<prefer> | |
<family>Ubuntu Mono</family> <!-- change this to your prefered monospace font if you like --> | |
<family>DejaVu Sans Mono</family> | |
<family>Android Emoji</family> <!-- put the Symbola line before this if you prefer Symbola to Android Emoji --> | |
<family>Symbola</family> | |
</prefer> | |
</alias> | |
</fontconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment