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

Phanpy uses Safari-only 'ui-rounded' and 'ui-monospace' instead of 'system-ui' or 'monospace' #965

Open
irasponsible opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@irasponsible
Copy link

irasponsible commented Dec 4, 2024

Site, Version, Instance

phanpy.social 2024.11.22.8f048af
eldritch.cafe

Browser

Firefox 133.0 (64-bit) / Linux 6.11.10-300.fc41.x86_64

Bug description

The current font declaraton in Phanpy's CSS is

font-family: ui-rounded, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;

Which means that unless your browser supports ui-rounded (which is Safari-only), you get a random font instead what appears to be intended, the system-ui font.

As it stands, because I have Segoe UI installed, that's the font I get, even though my system-ui and sans-serif fonts are Inter Variable.

The same issue occurs with the monospace font

--monospace-font: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

Where Consolas ends up used, instead of the system and browser monospaced font Commit Mono.

To reproduce

  1. Open Phanpy in Firefox or a Non-Safari browser
  2. Use developer tools to see which font has been used

Expected behavior

Phanpy should use either the system ui font (system-ui) or the system sans-serif font (sans-serif).

This could be accomplished by replacing the current font declaration with font-family: ui-rounded, system-ui, sans-serif; and font-family: ui-monospace, monospace;

Other

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant