Follow

aah something installed "dejavu sans" as a required dependency and it took over mastodon's system font option.

after a bit of debugging, it seems like it loads when firefox asks for "Segoe UI", and the only fontconfig incantation i know of to fix this isn't working

:(

· · Web · 1 · 0 · 0

@admicos

On… which app? Client-side? Desktop? Phone? Whaddayamean “Mastodon” now that you’re on another instance?

@Sandra

ah, well, firefox. but fc-match also maps "Segoe UI" into dejavu, so I expect this to be a fontconfig issue, not firefox.

Here's my config in case I did something stupid again: ebc.li/LmA

@admicos

<match target="pattern"> <test qual="any" name="family"><string>Segoe UI</string></test> <edit name="family" mode="assign" binding="same"><string>sans-serif</string></edit> </match>

@admicos

As in, you are testing for Segoe and giving it Deja Vu

@Sandra

$ fc-match "sans-serif"
Roboto-Regular.ttf: "Roboto" "Regular"

I am currently working around all this via some CSS mess

one day i will delete the default /etc/fonts of my distro and just bind everything into Noto, Roboto and Ubuntu Mono, because wow fontconfig is annoying to work with

@admicos

Maybe FC isn’t applying the replacements recursively…? Just a guess

@Sandra

yup, this seems to be the problem.
why is it like this, and why did i not catch it with the config line right above, which also assumed it would work recursively

@admicos

This is a pretty common pitfall with this lang family. Sometimes it’s a good thing because recursive template application can lead to crashes and freezes if peeps are being sloppy. I use sxml-pre-post-order-splice* on Chicken which does allow (optionally) recursive template application and I’ve seen some bad crashes while deving

@admicos

So just map Segoe to Roboto directly and you’re golden.

Also don’t post screenshots because I get seizures from Roboto. I basically only Helvetica and Futura. Like Cayce Pollard.

@Sandra

> Also don’t post screenshots because I get seizures from Roboto. I basically only Helvetica and Futura. Like Cayce Pollard.

Honestly, I am using Roboto mostly because I don't know many fonts and it's (well, anything is) better than the Dejavu/Liberation fonts most Linux distributions seem to always default to.

@admicos

(Crashes bc if you replace A with B and then B with A and then A with B… or, which is legal with sxml-pre-post-order-splice*, replace A with A with A with A with… Steve Ditko would be proud.)

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!