emacs does not uses fonts from /usr/share/fonts <p>Can't win in emacs font battle under Debian Linux+fluxbox.</p> <p>Should be mentioned that I have absolutely no expirience in fontconfig, so mb I am missing something obvious.</p> <p>I am trying to use some system fonts from /usr/share/fonts like DejaVu under emacs but no luck.</p> <p>I tried:</p> <p>1. Mentioned on many resources commands like</p> <pre><code>(set-default-font "DejaVu Sans Mono-12") </code></pre> <p>returns "Font not available" for almost any fontname I tried.</p> <p>2.</p> <pre><code>Shift+Mouse-Left-Click-&gt;Change Text Font -&gt; </code></pre> <p>gives very little list of available fonts with two or three and different sizes.</p> <p>3. I tried:</p> <pre><code>ln -s /usr/share/fonts ~/.fonts </code></pre> <p>and nothing</p> <p>4. tried using xset method for(found such method on archlinux wiki and blindly tested):</p> <pre><code>cd /usr/share/fonts/truetype/ttf-dejavu sudo mkfontdir xset +fp /usr/share/fonts/truetype/ttf-dejavu xset fp rehash </code></pre> <p>nothing</p> <p>5. I even straced emacs for any acces to directories with font name:</p> <pre><code>2&gt;&amp;1 strace -f emacs-24.3.1 &gt; ./t.txt </code></pre> <p>but</p> <pre><code>grep -i font ./t.txt </code></pre> <p>gives only:</p> <pre><code>[pid 18809] writev(3, [{"b\1\6\0\17\0\1\0", 8}, {"XFree86-Bigfont", 15}, {"\0", 1}], 3) = 24 </code></pre> <p>and nothing about directories like ~/.fonts or /usr/share/fonts</p> <p>At the same time:</p> <pre><code>% fc-list|grep -c deja 42 </code></pre> <p>How does it work?:( Mb i dont understand some main idea?</p> <p>UPDATE: I've used opensoop -v to monitor what path uses emacs on my laptop (under os x) to get fonts but this has nothing with linux paths ofc:(</p> <p>Can someone under the linux trace emacs for opening fonts to give a hint what paths I should configure.</p> <pre><code>2&gt;&amp;1 strace -f emacs |grep -i font </code></pre> <p>will be enough i think</p>