I'm running bashforwindows, and have install emacs natively (not emacs for windows) following the awesome instructions given by Luke Lee to install from source here: How to use X Windows with Emacs on Windows 10 Bash?
I can run emacs fine from bash, using MobaXTerm as the xserver. However, I cannot get emacs to see any of my linux fonts (or windows fonts, for that matter).
From my shell, I can run fc-list
and get a list that includes things like consola and Inconsolata (which is what I want):
[~]$ 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
However, emacs cannot see these. If I run emacs from that shell, and then from emacs run (print (font-family-list))
, I get:
("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")
which does not contain any of fonts I want.
How can I get emacs to see the fonts that are available, or otherwise find some other way of installing them?