Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fonts-urw-base35 sets "fantasy" generic font to an unreadable symbol font #2795

Open
DestyNova opened this issue Feb 12, 2023 · 0 comments
Open

Comments

@DestyNova
Copy link

Distribution (run cat /etc/os-release):

DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

fonts-urw-base35:
  Installed: 20200910-1
  Candidate: 20200910-1
  Version table:
 *** 20200910-1 500
        500 http://apt.pop-os.org/ubuntu jammy/main amd64 Packages
        500 http://apt.pop-os.org/ubuntu jammy/main i386 Packages
        100 /var/lib/dpkg/status

Issue/Bug Description:

Web browsers respecting the generic font family "fantasy" should follow the W3C definition:

Fantasy fonts are primarily decorative or expressive fonts that contain decorative or expressive representations of characters. These do not include Pi or Picture fonts which do not represent actual characters.

Firefox implements these generic font families (Chromium doesn't; or at least on my system they're all the same default font), but the "fantasy" family appears as unreadable symbols.

It appears to be due to the fonts-urw-base35 package installing a font named (charmingly) D050000L, along with the configuration file /usr/share/fontconfig/conf.avail/urw-d050000l.conf. As discussed in this Github issue, that file contains two inappropriate font aliases:

<!-- Generic name aliasing -->
  <alias>
    <family>fantasy</family>
    <prefer>
      <family>D050000L</family>
    </prefer>
  </alias>

  <!-- Generic name assignment -->
  <alias>
    <family>D050000L</family>
    <default>
      <family>fantasy</family>
    </default>
  </alias>

I'll try opening a PR on the upstream project, but that might not be accepted (or might take a while), so maybe we can fix it temporarily here?

Steps to reproduce (if you know):

Expected behavior:

The sentence "This sentence should be in a fantasy font." should be highlighted and readable.

Actual behaviour:

The highlighted sentence is a bunch of unreadable symbols.

Screenshot_2023-02-12_19-04

Other Notes:

See a related issue (maybe identical) in the Fedora tracker. I presume Ubuntu users would also see this issue but not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant