简体   繁体   中英

Monospace icon font in Emacs?

I am inserting icons from FontAwesome and other icon fonts into Emacs but I would like to get them aligned with the monospace font I use (DejaVu Sans Mono). Is this possible?

I have found a workable solution. I have installed a number of Nerd Fonts. These mostly solve the problem, but occasionally the alignment was still off by a few pixels. However, it seems that, when a glyph is available in multiple fonts, Emacs will try to match its width to that of the fixed width font in use. So, installing sufficiently many Nerd Fonts has solved the problem for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM