Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plasma 6 Wayland: Thin Lined Fonts Display as Rainbow
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 343

PostPosted: Thu Feb 13, 2025 8:55 pm    Post subject: Plasma 6 Wayland: Thin Lined Fonts Display as Rainbow Reply with quote

Hi everyone,

I'm encountering an issue with Plasma 6 on Wayland where thin-lined fonts appear with a rainbow-like effect, which is incorrect. The fonts display fine in X11 (Plasma 6) and in GNOME on Wayland, where they look as expected.

Here’s a summary of the issue:

Plasma 6 on Wayland: Thin fonts are displayed with rainbow-like distortion image
Plasma 6 on X11: The fonts are rendered as expected (no rainbow effect) image
GNOME on Wayland: Fonts appear as expected, no distortion.

Has anyone experienced a similar issue or know of a potential solution? I'm using Gentoo and have tested various font configurations, but the issue persists. Any help or suggestions would be greatly appreciated!

This is Noto on the screenshot. Unmerging the noto package makes the font thick, and rainbow disappears.

Thanks in advance.
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 478

PostPosted: Fri Feb 14, 2025 4:45 am    Post subject: Reply with quote

There have been some font rendering issues in QT/KDE Plasma since the upgrade from 5 to 6, however most of that
has been fixed in recent releases/updates.

Under System Settings> Text & Fonts> Fonts, what are you settings for the last four items:
1.) Anti-Aliasing (Enable)
2.) Exclude range from anti-aliasing
3.) Sub-pixel rendering
4.) Hinting

Under System Settings> Display and Monitor> Display, are you using scaling? Have you modified the color profile setting there?

Are you using using a hidpi monitor?

Does this occur with all applications or only specific applications?

To eliminate the possibility that this is a configuration or settings issue, what are the results when logged in as a new user?
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 343

PostPosted: Fri Feb 14, 2025 8:57 am    Post subject: Reply with quote

System Settings> Text & Fonts> Fonts image
1 Anti-Aliasing (Enable) === Enable (checkbox is set)
2 Exclude range from anti-aliasing === Disable (checkbox is empty)
3 Sub-pixel rendering === RGB (image) Also tried None (image)
4 Hinting === tried Slight and Full --- both look the same


System Settings> Display and Monitor> Display image
Scale: 125% (tried 100% --- no effect)
Color profile: None (tried built-in ---no effect)
Legacy applications (X11) --- tried both, no effect


Q: Are you using using a hidpi monitor?
A: This is 1920x1200 14.5" IPS screen (I am not sure what is considered hidpi nowadays, hope the numbers provide the answer)


Q: Does this occur with all applications or only specific applications?
A: First observed in guitarix, also I can reproduce in firefox-bin --- because I can craft a test html page


Q: To eliminate the possibility that this is a configuration or settings issue, what are the results when logged in as a new user?
A: Under a newly created account observations are the same.


Observed with plasma-meta-6.2.5 and 6.3.0


Used this html snippet for testing in firefox-bin:
Code:

<html>
    <head>
        <style>
         body { background: #111; }
         p {
             font-family: "Noto Sans";
             font-size: 16px;
             font-stretch: normal;
             font-style: normal;
             font-variant: normal;
             font-weight: 1;
             color: #fff;
         }
        </style>
    </head>
    <body>
        <p>This is a test message mmmmmesssage iiiiii llllll</p>
        <p>ffffffff ttttt nnnnnnnn mmmmmmmssssss</p>
        <p>firefox-bin firefox-bin I am a rainbow</p>
    </body>
</html>

This is how it is seen in firefox-bin Plasma 6 Wayland image

Update: tried KDE Neon LiveCD --- font does not become so thin like here, and rainbow is not observed.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2308
Location: Adendorf, Germany

PostPosted: Sat Feb 15, 2025 10:19 am    Post subject: Reply with quote

I'd look into
Code:
eselect fontconfig list
to check whether everything is activated that you want to have activated.
Also there are more methods of sub-pixel rendering than just "RGB" and "None".

As an example, if you have activated "10-sub-pixel-bgr.conf" in fontconfig, and set sub-pixel rendering to "RGB", you could provoke exactly those rainbow effects you are describing.
Another fontconfig that might interfere are the 10-hinting-*.conf and 11-lcdfilter-*.conf configurations.
_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 343

PostPosted: Sat Feb 15, 2025 1:28 pm    Post subject: Reply with quote

Code:
Available fontconfig .conf files (* is enabled):
  [1]   05-reset-dirs-sample.conf
  [2]   09-autohint-if-no-hinting.conf
  [3]   10-autohint.conf
  [4]   10-hinting-full.conf
  [5]   10-hinting-medium.conf
  [6]   10-hinting-none.conf
  [7]   10-hinting-slight.conf *
  [8]   10-no-antialias.conf
  [9]   10-scale-bitmap-fonts.conf *
  [10]  10-sub-pixel-bgr.conf
  [11]  10-sub-pixel-none.conf
  [12]  10-sub-pixel-rgb.conf *
  [13]  10-sub-pixel-vbgr.conf
  [14]  10-sub-pixel-vrgb.conf
  [15]  10-unhinted.conf
  [16]  10-yes-antialias.conf *
  [17]  11-lcdfilter-default.conf *
  [18]  11-lcdfilter-legacy.conf
  [19]  11-lcdfilter-light.conf
  [20]  11-lcdfilter-none.conf
  [21]  20-unhint-small-dejavu-sans.conf
  [22]  20-unhint-small-dejavu-sans-mono.conf
  [23]  20-unhint-small-dejavu-serif.conf
  [24]  20-unhint-small-vera.conf *
  [25]  25-unhint-nonlatin.conf
  [26]  30-metric-aliases.conf *
  [27]  35-lang-normalize.conf
  [28]  40-nonlatin.conf *
  [29]  45-generic.conf *
  [30]  45-latin.conf *
  [31]  48-spacing.conf *
  [32]  49-sansserif.conf *
  [33]  50-user.conf *
  [34]  51-local.conf *
  [35]  57-dejavu-sans.conf
  [36]  57-dejavu-sans-mono.conf
  [37]  57-dejavu-serif.conf
  [38]  60-generic.conf *
  [39]  60-latin.conf *
  [40]  60-liberation.conf
  [41]  61-urw-bookman.conf
  [42]  61-urw-c059.conf
  [43]  61-urw-d050000l.conf
  [44]  61-urw-fallback-backwards.conf
  [45]  61-urw-fallback-generics.conf
  [46]  61-urw-fallback-specifics.conf
  [47]  61-urw-gothic.conf
  [48]  61-urw-nimbus-mono-ps.conf
  [49]  61-urw-nimbus-roman.conf
  [50]  61-urw-nimbus-sans.conf
  [51]  61-urw-p052.conf
  [52]  61-urw-standard-symbols-ps.conf
  [53]  61-urw-z003.conf
  [54]  65-fonts-persian.conf *
  [55]  65-khmer.conf
  [56]  65-nonlatin.conf *
  [57]  66-noto-mono.conf
  [58]  66-noto-sans.conf
  [59]  66-noto-serif.conf
  [60]  69-unifont.conf *
  [61]  70-no-bitmaps.conf
  [62]  70-yes-bitmaps.conf
  [63]  75-noto-emoji-fallback.conf
  [64]  80-delicious.conf *
  [65]  90-roboto-regular.conf
  [66]  90-synthetic.conf *
Back to top
View user's profile Send private message
muddle
n00b
n00b


Joined: 01 May 2007
Posts: 32

PostPosted: Sun Feb 16, 2025 7:58 am    Post subject: Reply with quote

I had similar issues if I activated HDR on my box.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2308
Location: Adendorf, Germany

PostPosted: Mon Feb 17, 2025 7:23 am    Post subject: Reply with quote

Maybe HDR can be an issue. Spicas fontconfig looks pretty solid to me.
_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum