【发布时间】:2017-11-06 23:24:16
【问题描述】:
我正在运行 bashforwindows,并且按照 Luke Lee 给出的从源代码安装的精彩说明,在本机安装 emacs(不是 Windows 的 emacs):How to use X Windows with Emacs on Windows 10 Bash?
我可以使用 MobaXTerm 作为 xserver 从 bash 运行 emacs。但是,我无法让 emacs 看到我的任何 linux 字体(或 windows 字体,就此而言)。
在我的 shell 中,我可以运行 fc-list 并获得一个列表,其中包括 consola 和 Inconsolata(这是我想要的)之类的内容:
[~]$ fc-list
/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf: DejaVu Serif:style=Bold
/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book
/home/hal/.local/share/fonts/consolaz.ttf: Consolas:style=Bold Italic
/home/hal/.local/share/fonts/Inconsolata-Bold.ttf: Inconsolata:style=Bold
/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold
/home/hal/.local/share/fonts/consolai.ttf: Consolas:style=Italic
/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/home/hal/.local/share/fonts/Inconsolata-Regular.ttf: Inconsolata:style=Regular
/home/hal/.local/share/fonts/consolab.ttf: Consolas:style=Bold
/home/hal/.local/share/fonts/consola.ttf: Consolas:style=Regular
/usr/share/fonts/truetype/inconsolata/Inconsolata.otf: Inconsolata:style=Medium
/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf: DejaVu Serif:style=Book
但是,emacs 看不到这些。如果我从那个 shell 运行 emacs,然后从 emacs 运行 (print (font-family-list)),我得到:
("courier" "helvetica" "new century schoolbook" "times" "utopia"
"lucida" "lucidabright" "lucidatypewriter" "fixed" "nil" "clearlyu
alternate glyphs" "clearlyu arabic extra" "clearlyu arabic" "clearlyu
devanagari" "clearlyu devangari extra" "clearlyu ligature" "clearlyu
pua" "clean" "fixed" "open look cursor" "open look glyph" "courier"
"helvetica" "new century schoolbook" "times" "utopia" "lucida"
"lucidabright" "lucidatypewriter" "fixed" "nil" "clearlyu alternate
glyphs" "clearlyu arabic extra" "clearlyu arabic" "clearlyu
devanagari" "clearlyu devangari extra" "clearlyu ligature" "clearlyu
pua" "clean" "fixed" "open look cursor" "open look glyph" "fixed")
其中不包含我想要的任何字体。
如何让 emacs 查看可用的字体,或者找到其他安装方式?
【问题讨论】:
标签: emacs windows-subsystem-for-linux