Emacs 23.3 lost all fonts

I upgraded Emacs from 23.1 to 23.3, and it suddenly can no longer find my fonts (e.g. Liberation Mono). When I try to set Options-> Set Default Font ... I am offered a very strange choice of things that some call using the "AxB" format, where A and B are numbers, some of which have deleted recognizable names (for example, lucildatypewriter - although I don’t have a font installed under this name, neither "Lucilda Typewriter", nor anything like that remotely), in the "Lucilda" family there are several more "relatives" - for example: "lucildatypewriter-bold-14", but the choice of weight / size arbitrarily. It has another menu entirely dedicated to the Courier font and one small menu that says “fontsets” and contains two elements: “standard 17-dot media” and “starting 16-dot media”, both clearly do not indicate fonts.

The font that he chose to display the code is some serif font, and it looks really bad ...

When I try to set the default Mx customize-face RET default , it says that it uses times - again, I have no set times, the font I have is "Times New Roman".

I also tried eval'ing

 (set-face-attribute 'default nil :family "Liberation Mono" :height 100) 

but he had no visible effect.

Below is my fonts.conf:

 <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="font" qual="all"> <edit name="antialias" mode="assign"> <bool>false</bool> </edit> <edit name="hintstyle" mode="assign"> <int>0</int> </edit> <edit name="hinting" mode="assign"> <bool>false</bool> </edit> </match> <fontconfig> 

(I do not want to use AA for fonts)

  fc-list 

prints the fonts I would like to use and used in a previous version of Emacs. I use Ubuntu / GTK if that matters.

What do I need to do to explain emacs where my fonts are installed?

Thanks!

+4
source share
1 answer

This happened to me when using a version of Emacs configured without GTK support. Recompiling Emacs with GTK tuning allowed me to see all the expected fonts again.

0
source

Source: https://habr.com/ru/post/1389511/


All Articles