You are not logged in.

#1 2020-08-26 04:28:47

xandora
Member
Registered: 2020-08-26
Posts: 2

Discord doesn't seem to register 'monospace' font

I recently installed some additional font packages so that I could see emoji and those funny font names people come up with on Discord. After installing one particular font, somehow it ended up changing all my default font settings for 'sans', 'serif', and 'monospace'. After resolving this (I believe) Discord no longer seems to recognise the 'monospace' font that I have set.

How can I find out how Discord decides on what font it should use? I assume it's looking at the 'sans', 'serif', 'monospace' defaults as some point, as it's built on Electron and must require fallback fonts.

Here is a gist of my /etc/fonts/local.conf file:

https://gist.github.com/xandora/7327049 … 839df5e77b

Offline

#2 2020-08-26 21:08:50

xandora
Member
Registered: 2020-08-26
Posts: 2

Re: Discord doesn't seem to register 'monospace' font

After figuring out how to get into the devtools on Discord (Ctrl + Shift + I), I found the font list that Discord looks for inside code blocks:

Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace

I started deleting fonts from the start of the list in the CSS, until I got to

Lucida Sans Typewriter

, where after deleting this font, the code block in the conversation pane immediately updated to correctly display using the [DejaVu Sans Mono] font.

I gather that these first few fonts are either not installed, or not being matched correctly. I'm not sure however, how to go about resolving that. How can I make sure the

local.conf

file will correctly provide the default monospace font in the event that these other fonts aren't matched?

Offline

Board footer

Powered by FluxBB