Bug 465464

Summary: Falkon has bad text rendering in wayland with fractional scaling
Product: [Applications] Falkon Reporter: Munzir Taha <munzirtaha>
Component: generalAssignee: David Rosca <nowrep>
Status: RESOLVED FIXED    
Severity: normal CC: jurajoravec
Priority: NOR    
Version First Reported In: 22.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Falkon Rendering
Firefox Rendering

Description Munzir Taha 2023-02-08 10:26:58 UTC
Created attachment 156065 [details]
Falkon Rendering

When I browser a youtube e.g.

https://www.youtube.com/watch?v=uZzlSWyc6oQ

The Arabic text is rendered in "Arabic Bold". The Arabic text is fuzzy and it seems like a faux bold. Firefox renders the text properly but Falkon shows this this problem. Attached is a screenshot from Falkon and another from Firefox.
Comment 1 Munzir Taha 2023-02-08 10:27:46 UTC
Created attachment 156066 [details]
Firefox Rendering
Comment 2 Juraj 2023-03-13 08:47:33 UTC
Hello,
at least at the moment Youtube sets font like this:
> font-family: "YouTube Sans","Roboto",sans-serif;

Since I have Roboto installed, it uses that for me.
This issue could actually be about how the fonts are configured in settings and what fonts and how they are configured on your operating system.
Comment 3 Munzir Taha 2023-03-13 12:00:09 UTC
(In reply to Juraj from comment #2)
> Hello,
> Since I have Roboto installed, it uses that for me.

No, it's not. Roboto font doesn't even support Arabic.
Comment 4 Munzir Taha 2023-11-21 11:57:48 UTC
It seems Google noticed this bug so they fixed their website by adding Arabic glyphs to their "Youtube Sans" ;)

So, here is another example:

https://quran.ksu.edu.sa/tafseer/katheer/sura52-aya35.html

On the above page, the Arabic text, especially, the one on the greenish background looks blurry because it's using a faux bold instead of the available bold of "KFGQPC Uthmanic Script HAFS" font.
Comment 5 Munzir Taha 2024-07-28 19:44:42 UTC
I see now the problem seems to be related to the display scale. When I have it set to 150% e.g. in wayland I got this problem, but if I changed the scale to 100%, everything is good. It's not only the web pages content but falkon interface text itself. So I guess it's related to fractional scaling and this Qt bug which is now resolved: https://bugreports.qt.io/browse/QTBUG-113574
Comment 6 Munzir Taha 2024-10-15 08:06:09 UTC
I no longer see the bug. Closing