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

No subpixel font rendering in Firefox #380

Open
formicant opened this issue Jul 17, 2024 · 0 comments
Open

No subpixel font rendering in Firefox #380

formicant opened this issue Jul 17, 2024 · 0 comments

Comments

@formicant
Copy link

formicant commented Jul 17, 2024

Current behaviour

In Firefox, all the text in Hackmd documents is rendered without subpixel antialiasing.

hackmd_grayscale_fonts

The text is hard to read on non-hi-DPI screens.

Expected behaviour

The text should be rendered as set up in the system.

Notes

It must be something to do with CSS styling. Possibly, semi-transparent backgrounds.

If I apply a user style like this

.CodeMirror-sizer { background: white; }

the code pane starts to render the fonts correctly:

hackmd_subpixel_fonts

Environment

I use HackMD on:

** Desktop**

  • OS:
    • Arch Linux, KDE Plasma, X11
    • Windows 10 Pro 22H2 19045.4651
  • Browser: Firefox
  • Browser Version: 128.0

In Chromium, everything is rendered correctly, with subpixel antialiasing.

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