User Tools

Site Tools


it:emacs:fonts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
it:emacs:fonts [2021/06/22 23:42]
admin created
it:emacs:fonts [2021/06/23 12:07] (current)
admin
Line 1: Line 1:
 ===== Adding Fonts in Pengwin WSL1 (2021-06-22) ===== ===== Adding Fonts in Pengwin WSL1 (2021-06-22) =====
  
-I was working on the Eloquent Javascript book online when I cut and pasted some code into Emacs, and found that the Emacs I was running (version 26 on windows) could not display color emojis.+I was working on the [[https://eloquentjavascript.net/05_higher_order.html|Eloquent Javascript]] book online when I cut and pasted the code below into Emacs, and found that the Emacs I was running (version 26 on windows) could not display color emojis. 
 + 
 +<code> 
 +let roseDragon = "🌹🐉"; 
 +for (let char of roseDragon) { 
 +  console.log(char); 
 +
 +// → 🌹 
 +// → 🐉 
 +</code>
  
 Stack exchange provided a solution https://emacs.stackexchange.com/questions/62219/how-do-i-get-colour-emoji-to-display-in-emacs, which I tried. Stack exchange provided a solution https://emacs.stackexchange.com/questions/62219/how-do-i-get-colour-emoji-to-display-in-emacs, which I tried.
Line 13: Line 22:
 ==== See also ==== ==== See also ====
  
-  * Harfbuzz +  * [[pe:emacs | Main Emacs page]]
-  * Cairo +
- +
-Next up was to download and install the emoji fonts from https://www.google.com/get/noto/help/emoji/. Installation was done through font-manager. I did a local install, which put the font files in ~/.local/share/fonts. This directory was different from some advice in the web which showed a manual install in ~./fonts. Apparently the latter is deprecated (https://github.com/13rac1/emojione-color-font/issues/14). You could install it manually via command line, but font-manager worked well for me. +
- +
-After the installation and running the code above, the emojis displayed. The I created a .emacs file for myself to make it load each time I start it up. +
- +
-==== See also ==== +
   * Harfbuzz   * Harfbuzz
   * Cairo   * Cairo
it/emacs/fonts.1624405346.txt.gz · Last modified: 2021/06/22 23:42 by admin