Edit: copying the font to /usr/local/share/fonts/ fixed it. (I downloaded Debian Xfce a while ago because of how much I dislike Snap, so I’ll soon replace Xubuntu with it.)

I recently installed the font “Atkinson Hyperlegible” on Xubuntu 22.04.3 (via right click, Fonts 41.0), and I use it as the Xfce UI font and the default in Mousepad and LibreOffice without any problems.

However in Firefox 120.0.1 (64-bit), Snap for Ubuntu, canonical-002 - 1.0; it’s not listed at Edit, Settings, Fonts; or Fonts, Advanced…

When I view an HTML page where the CSS’ body has font-family:"Atkinson Hyperlegible",sans-serif; it also doesn’t use the Atkinson font. That page also doesn’t use Atkinson in the (Epiphany GNOME) Web 45.1 browser.

Any ideas on how to get Firefox and Epiphany to see it?

  • Jack@lemmy.caOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    Thanks for the comments. Based on them I found https://github.com/snapcrafters/gimp/issues/21 which suggested copying the font to ~/.fonts/ (which didn’t work) and to /usr/local/share/fonts/ which fixed it - Epiphany can now see the font, and I can now set it as default in Firefox (tho Firefox is ignoring it in a page’s CSS).