staging.inyokaproject.org

fontconfig / Schriftenverwaltung komplett kaputt

Status: Ungelöst | Ubuntu-Version: Ubuntu GNOME 16.04 (Xenial Xerus)
Antworten |

zenofthinking

Anmeldungsdatum:
22. September 2013

Beiträge: Zähle...

Hallo,

nach der versuchten systemweiten Installation einer neuen Schrift (/usr/share/fonts/truetype/CascadiaCode/*.ttf) und einem anschließenden

1
2
3
4
5
6
7
8
$ sudo fc-cache -rfv
/usr/share/fonts/truetype/roboto/hinted/@FC_DEFAULT_FONTS@: skipping, no such directory
/home/zen/.local/share/fonts: skipping, no such directory
/home/zen/.fonts: skipping, no such directory
/usr/share/fonts/truetype/roboto/hinted/@FC_CACHEDIR@: not cleaning non-existent cache directory
/home/zen/.cache/fontconfig: not cleaning non-existent cache directory
/home/zen/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded

sind alle meine Schriften weg (alles was Serif oder Sans-Serif per System eingestellt ist). Allein schon das "/usr/share/fonts/truetype/roboto/hinted/@FC_DEFAULT_FONTS@:" macht sehr stutzig.

Es ergeben sich:

1
2
$ fc-match serif
$

und

1
2
$ fc-match sans
$

und

1
2
$ fc-match mono
$

und dass ich das hier so als Ausgabe posten kann,liegt nur an der Tatsache, dass ein

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
sudo mv /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bak
sudo fc-cache -rfv
Fontconfig error: Cannot load default config file
/usr/share/fonts: caching, new cache contents: 0 fonts, 8 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/X11/100dpi: caching, new cache contents: 357 fonts, 0 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 81 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/eot: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/eot/font-awesome: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/opentype: caching, new cache contents: 1 fonts, 11 dirs
/usr/share/fonts/opentype/cabin: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/opentype/cantarell: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/ebgaramond: caching, new cache contents: 7 fonts, 0 dirs
/usr/share/fonts/opentype/font-awesome: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/opentype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/opentype/gentiumplus: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/opentype/linux-libertine: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/opentype/lobster: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/opentype/lobstertwo: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/opentype/stix: caching, new cache contents: 29 fonts, 0 dirs
/usr/share/fonts/opentype/stix-word: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/svg: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/svg/font-awesome: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 29 dirs
/usr/share/fonts/truetype/adf: caching, new cache contents: 36 fonts, 0 dirs
/usr/share/fonts/truetype/artemisia: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/asana-math: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/comfortaa: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/truetype/complutum: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/crosextra: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/truetype/dejavu: caching, new cache contents: 21 fonts, 0 dirs
/usr/share/fonts/truetype/didot: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/ebgaramond: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/truetype/font-awesome: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/gentium: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/gentium-basic: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/truetype/inconsolata: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/junicode: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/lato: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/liberation2: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/lyx: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/neohellenic: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/noto: caching, new cache contents: 674 fonts, 0 dirs
/usr/share/fonts/truetype/olga: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/roboto: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/truetype/roboto/hinted: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/solomos: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu-font-family: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/type1/texlive-fonts-recommended: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/woff: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/woff/font-awesome: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/woff/gentiumplus: caching, new cache contents: 2 fonts, 0 dirs
Re-scanning /usr/share/fonts: caching, new cache contents: 0 fonts, 8 dirs
Re-scanning /usr/share/fonts/X11: caching, new cache contents: 0 fonts, 5 dirs
Re-scanning /usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
Re-scanning /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
Re-scanning /usr/share/fonts/eot: caching, new cache contents: 0 fonts, 1 dirs
Re-scanning /usr/share/fonts/opentype: caching, new cache contents: 1 fonts, 11 dirs
Re-scanning /usr/share/fonts/svg: caching, new cache contents: 0 fonts, 1 dirs
Re-scanning /usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 29 dirs
Re-scanning /usr/share/fonts/truetype/roboto: caching, new cache contents: 0 fonts, 1 dirs
Re-scanning /usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
Re-scanning /usr/share/fonts/woff: caching, new cache contents: 0 fonts, 2 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
fc-cache: succeeded

mir zumindest ein bisschen Schriften zurück gebracht hat. Allerdings mit

1
2
3
4

$ fc-match sans
Fontconfig error: Cannot load default config file
FreeMono.otf: "FreeMono" "Standard"

.

Nun ergibt

1
2
3
4
5
6
7
sudo apt install --reinstall fontconfig-config 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Erneute Installation von fontconfig-config ist nicht möglich,
es kann nicht heruntergeladen werden.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

und

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
sudo apt show fontconfig-config 
Package: fontconfig-config
Version: 2.12.6-0ubuntu2~16.04.york0.0
Status: install ok installed
Priority: optional
Section: fonts
Source: fontconfig
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Keith Packard <keithp@debian.org>
Installed-Size: 424 kB
Depends: ucf (>= 0.29), fonts-dejavu-core | ttf-bitstream-vera | fonts-liberation | fonts-freefont
Conflicts: fontconfig (<< 2.3.2-2)
Replaces: fontconfig (<< 2.3.2-2)
Homepage: https://www.freedesktop.org/wiki/Software/fontconfig/
Download-Size: unbekannt
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: allgemeine Bibliothek für die Schriftenverwaltung - Konfiguration
 Fontconfig ist eine Bibliothek zur Konfiguration und Anpassung von
 Schriften, die nicht vom X Window System abhängt. Sie wurde entwickelt, um
 Schriften innerhalb des Systems aufzufinden und gemäß der Anforderungen
 auszuwählen, die von Anwendungen gestellt werden.
 .
 Dieses Paket enthält die Konfigurationsdateien und -skripte von
 fontconfig.

N: Es gibt 2 zusätzliche Einträge. Bitte verwenden Sie die Option »-a«, um sie anzuzeigen.

Ich kann also weder das Paket fontconfig noch fontconfig-config neuinstallieren.

Ich würde gerne das Problem im Allgemeinen fixen, und würde dann gerne in ~/.config/fontconfig/fonts.conf (aktuell leer bzw. nicht vorhanden) sauber selbst meine präferierten Schriften einstellen. Ich habe den Arch-Wiki-Artikel gelesen, aber nichts davon hat "gegriffen", fc-match ergibt immer entweder nichts, oder nur FreeMono.

Wer kann helfen?

Danke und Grüße, zen

Antworten |