Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά παραβίασης».

Μάθετε περισσότερα

Αυτό το νήμα αρχειοθετήθηκε. Κάντε νέα ερώτηση αν χρειάζεστε βοήθεια.

Small fonts have color distortions when rendering on Linux, how to fix?

  • 4 απαντήσεις
  • 2 έχουν αυτό το πρόβλημα
  • 72 προβολές
  • Τελευταία απάντηση από FredMcD

περισσότερες επιλογές

I noticed that small fonts on one website were strangely colorful. I narrowed it down to a simple HTML snippet:

<span style="font-family:sans-serif; font-size:10pt; font-weight:lighter; color:white; background-color:black;"
      >The quick brown fox jumps over the lazy dog</span>

Attached scaled image on how it renders on my Linux Firefox 47.

The text is supposed to be white, and it is working on windows. On two different Linux distributions (Arch and Ubuntu) colors appear out of nowhere. Does Firefox need something specific to be installed on Linux for correct font rendering?

I noticed that small fonts on one website were strangely colorful. I narrowed it down to a simple HTML snippet: <pre><nowiki><span style="font-family:sans-serif; font-size:10pt; font-weight:lighter; color:white; background-color:black;" >The quick brown fox jumps over the lazy dog</span></nowiki></pre> Attached scaled image on how it renders on my Linux Firefox 47. The text is supposed to be white, and it is working on windows. On two different Linux distributions (Arch and Ubuntu) colors appear out of nowhere. Does Firefox need something specific to be installed on Linux for correct font rendering?
Συνημμένα στιγμιότυπα

Τροποποιήθηκε στις από τον/την cor-el

Επιλεγμένη λύση

Looks that Firefox has a problem with the anti-aliasing settings and uses all available horizontal RGB pixels to render the text.

Προβολή απάντησης εντός συζήτησης 👍 2

Όλες οι απαντήσεις (4)

περισσότερες επιλογές

Seems HTML wasn't escaped correctly in the original post:

<span style="font-family:sans-serif; font-size:10pt; font-weight:lighter; color:white; background-color:black;"

     >The quick brown fox jumps over the lazy dog</span>
περισσότερες επιλογές

Επιλεγμένη λύση

Looks that Firefox has a problem with the anti-aliasing settings and uses all available horizontal RGB pixels to render the text.

περισσότερες επιλογές

cor-el said

Looks that Firefox has a problem with the anti-aliasing settings and uses all available horizontal RGB pixels to render the text.

Disabling sub-pixel rendering solved the issue, thanks.

περισσότερες επιλογές

Hello,

I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution more easily.

Thank you for contacting Mozilla Support.