TransWikia.com

Displaying some characters with all-icon instead of my current font

Emacs Asked by Lhooq on September 2, 2021

Usually people want to print some characters and end up having strange squares clearly telling them this character is unknown by their default font and they have no fallback font for it.

My problem is quite the opposite, my current font (Fira Code) actually knows all the characters and seems to not agree with all-icons on some of them.

In my custom.el file I have a function to display some bullets as special characters and I explicitly wrote:

enter image description here

I put screenshots because it looks like StackExchange can’t handle these unicode characters:

'(? ? ? ?) 

When I put my cursor on one of these characters and Mx describe-char I get the following answer:

enter image description here

Note that the code for this character is #xe3d0 (and the other three are #xe3d(1/2/4)" so I could write my list like this:

'(#xe3d0 #xe3d1 #xe3d2 #xe3d4)

Anyway, when I restart my emacs to have my prettified bullets:

enter image description here

And even better, if I go back to my customisation file (at least it’s coherent):

enter image description here

I tried adding:

(set-fontset-font "fontset-default"
                  '(#xe3d0 . #xe3d4) (font-spec :name "FontAwesome"))

But it didn’t change anything.


[EDIT] If I write this list (according to https://en.wikipedia.org/wiki/Enclosed_Alphanumerics):

'(#x2460 #x2461 #x2462 #x2463)

I have the wanted result:

enter image description here

One Answer

Looks like the font I need to use is not "FontAwesome" but "Material Icons" :

(set-fontset-font t '(#xe3d0 . #xe3d4) "Material Icons")

And it works :-)

Correct answer by Lhooq on September 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP