You are not logged in.

#1 2021-04-08 15:50:20

cheezsteak
Member
Registered: 2021-04-05
Posts: 5

Launching an electron app breaks terminus font

I use 'xos4 Terminus' for my terminal and some other stuff.  Whenever I start an electron app (eg: discord, slack, spotify) its seems like it deletes terminus from my font list.  So if I open a terminal afterwards the font is wrong.  I don't know what font it is then, some default, but it's not xos4 Terminus.  Running fc-cache -f or reinstalling the terminus-font package fixes the problem, until I start a new electron application.

Has anyone else experienced this and/or know what the problem might be?  I've had this problem for a while and just figured out that it was electron apps triggering this.  I haven't seen another font be broken by this, only terminus, but this could be happening to other fonts.

Offline

#2 2021-04-08 16:06:33

seth
Member
Registered: 2012-09-03
Posts: 50,933

Offline

#3 2021-04-08 16:53:05

cheezsteak
Member
Registered: 2021-04-05
Posts: 5

Re: Launching an electron app breaks terminus font

The fix posted there is basically the same fix I had with `fn-cache -f`.  It only fixes it until I launch a new electron app.  Deleting ~/.cache/fontconfig/ before or after doesn't change anything.

I can take my topic over there if you want though.

Last edited by cheezsteak (2021-04-08 16:54:15)

Offline

#4 2021-04-08 17:00:59

seth
Member
Registered: 2012-09-03
Posts: 50,933

Re: Launching an electron app breaks terminus font

Afaiu that thread, wiping the cache put an end to the problem for at least the last two users.

There's however also https://bbs.archlinux.org/viewtopic.php?id=261208 and apparently electron does that to "sanitize" away pcf fonts… is the otb variant also affected?

Offline

#5 2021-04-08 17:12:14

cheezsteak
Member
Registered: 2021-04-05
Posts: 5

Re: Launching an electron app breaks terminus font

No!  The otb ones are still visible after starting an electron app

$ fc-list | grep Terminus
/usr/share/fonts/misc/ter-u22n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u20n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u22b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u20b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u24n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u32n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u28n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u24b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u18n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u12n.otb: Terminus:style=Regular
/usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: Terminus (TTF):style=Bold Italic
/usr/share/fonts/misc/ter-u16n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u14n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-x12b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x22b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x32b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x18b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x20b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x28b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x16b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x14n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-x14b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x24n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-x24b.pcf.gz: xos4 Terminus:style=Bold
/usr/share/fonts/misc/ter-x16n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/TTF/TerminusTTF-Bold.ttf: Terminus (TTF):style=Bold
/usr/share/fonts/misc/ter-x18n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-x20n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-x28n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-x12n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-x22n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-u12b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-x32n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/misc/ter-u16b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u14b.otb: Terminus:style=Bold
/usr/share/fonts/TTF/TerminusTTF-Italic.ttf: Terminus (TTF):style=Italic
/usr/share/fonts/misc/ter-u18b.otb: Terminus:style=Bold
/usr/share/fonts/TTF/TerminusTTF.ttf: Terminus (TTF):style=Medium
/usr/share/fonts/misc/ter-u32b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u28b.otb: Terminus:style=Bold

kill and restart slack

$ fc-list | grep Terminus
/usr/share/fonts/misc/ter-u22n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u20n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u22b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u20b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u24n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u32n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u28n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u24b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u18n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u12n.otb: Terminus:style=Regular
/usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: Terminus (TTF):style=Bold Italic
/usr/share/fonts/misc/ter-u16n.otb: Terminus:style=Regular
/usr/share/fonts/misc/ter-u14n.otb: Terminus:style=Regular
/usr/share/fonts/TTF/TerminusTTF-Bold.ttf: Terminus (TTF):style=Bold
/usr/share/fonts/misc/ter-u12b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u16b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u14b.otb: Terminus:style=Bold
/usr/share/fonts/TTF/TerminusTTF-Italic.ttf: Terminus (TTF):style=Italic
/usr/share/fonts/misc/ter-u18b.otb: Terminus:style=Bold
/usr/share/fonts/TTF/TerminusTTF.ttf: Terminus (TTF):style=Medium
/usr/share/fonts/misc/ter-u32b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u28b.otb: Terminus:style=Bold

Reading into the other thread now.

Offline

#6 2021-05-08 14:59:50

cheezsteak
Member
Registered: 2021-04-05
Posts: 5

Re: Launching an electron app breaks terminus font

Just to update.  I solved this by using the font "Terminus" instead of "xos4 Terminus", which means using the otb font instead of the pcf font.  I would still like some way to stop electron from purging PCF fonts.

Offline

Board footer

Powered by FluxBB