简体   繁体   English

Emacs 中的等宽图标字体?

[英]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).我正在将 FontAwesome 和其他图标 fonts 中的图标插入 Emacs 但我想让它们与我使用的等宽字体(DejaVu Sans Mono)对齐。 Is this possible?这可能吗?

I have found a workable solution.我找到了一个可行的解决方案。 I have installed a number of Nerd Fonts.我已经安装了一些Nerd Fonts。 These mostly solve the problem, but occasionally the alignment was still off by a few pixels.这些主要解决了问题,但偶尔 alignment 仍然偏离几个像素。 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.但是,似乎当一个字形在多个 fonts 中可用时,Emacs 将尝试将其宽度与使用的固定宽度字体的宽度相匹配。 So, installing sufficiently many Nerd Fonts has solved the problem for me.因此,安装足够多的 Nerd Fonts 为我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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