this post was submitted on 31 Dec 2023
27 points (96.6% liked)

Linux

48245 readers
490 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

all 6 comments
sorted by: hot top controversial new old
[–] mikey@sh.itjust.works 10 points 10 months ago

I don't know anything about how Firefox is packaged for snap, but snap's "sandboxing" might interfere with getting all fonts.

You might want to try using Firefox without snap (which has some other benefits, especially around startup time) or adding ~/.local/share/fonts (which is where fonts are supposed to be installed for users) to some sort of allowlist.

[–] chinstrap@lemmy.ml 8 points 10 months ago

If the fonts are installed as systemwide snap or flatpak applications may not be able to see them. Since they are allowed only to the user directories by default.

You can copy the fonts to user directory

cp /usr/share/fonts/your-font ~/.local/share/fonts/

[–] Hexarei@programming.dev 2 points 10 months ago
[–] Jack@lemmy.ca 1 points 10 months ago* (last edited 10 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).