You are not logged in.

#1 2019-11-02 16:54:21

dauriac
Member
Registered: 2019-01-29
Posts: 45

Xorg and fonts path [Solved]

Hello

I have a serious problem with font (each character is replaced by a square with a code).
I found that:

grep /fonts ~/.local/share/xorg/Xorg.0.log
[     4.234] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     4.234] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[     4.234] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     4.234] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     4.234] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     4.234] (WW) The directory "/usr/share/fonts/75dpi" does not exist.

however  these directories exist and the mkfontdir command has been issued

ls /usr/share/fonts/
100dpi  adobe-source-code-pro  cyrillic   gsfonts   misc  noto-cjk  TTF    util
75dpi   cantarell              encodings  mathjax2  noto  OTF       Type1

How to solve this issue ?
Thank you
AdA

Last edited by dauriac (2019-11-03 17:18:10)

Offline

#2 2019-11-02 22:26:58

seth
Member
Registered: 2012-09-03
Posts: 51,029

Offline

#3 2019-11-03 08:56:40

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: Xorg and fonts path [Solved]

Thank you Seth. I already looked at the post you mention, but I could not solve the problem. Since several month after each

sudo pacman -Syu

I needed to restore an old version of pango:

sudo pacman -U /var/cache/pacman/pkg/pango-1\:1.43.0-2-x86_64.pkg.tar.xz 

but now it is not anymore working and I am stuck.

Offline

#4 2019-11-03 11:37:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: Xorg and fonts path [Solved]

As already asked, which fonts are problematic in particular? The real fix here is not downgrading pango, but using/converting fonts that don't use the old bitmap format.

Offline

#5 2019-11-03 11:46:11

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: Xorg and fonts path [Solved]

Sorry V1del I don't know how to determine what fonts are used and what are the problematic ones

Offline

#6 2019-11-03 12:54:30

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: Xorg and fonts path [Solved]

Srsly?
It's the ones that you configured for any given client (that is important!) or as global defaults (depending on which context is actually affected)…
For the global defaults query

fc-match "sans"
fc-match "serif"
fc-match "monospace"

but again: the actually affected client/s is/are critically important here!

Also you should have read https://wiki.archlinux.org/index.php/Font_configuration so do it now.

Offline

#7 2019-11-03 16:41:15

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: Xorg and fonts path [Solved]

Thank you Seth. Following your advice I found that the default fonts were "Luxi Sans" fonts used by TeX.
I simply installed ttf-dejavu and now everything works fine. I don't understand why all that happens,
but it is not the first time, and not the last, that I "solve" a problem just following advice without understanding.

Offline

#8 2019-11-03 16:51:09

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: Xorg and fonts path [Solved]

As the other thread lamented, pango dropped support for pcf bitmap fonts (admittedly in an over-night complete dick move) so you cannot use any such fonts anymore in any client that loads fonts through pango.
Installing ttf-dejavu did not only provide you with some TTF fonts, but also a config snipped to default DejaVu variants, so the generic names now resolve DejaVu and those do not cause any trouble w/ pango.

Edit: Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Last edited by seth (2019-11-03 16:51:23)

Offline

Board footer

Powered by FluxBB