https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Bug ID: 2251384 Summary: Wrong Arabic font prioritization in several apps. (Droid kufi prioritized over noto-sans) Product: Fedora Version: 39 OS: Linux Status: NEW Component: fontconfig Severity: low Assignee: tagoh@redhat.com Reporter: alawamiaz@gmail.com QA Contact: extras-qa@fedoraproject.org CC: ajax@redhat.com, fonts-bugs@lists.fedoraproject.org, gnome-sig@lists.fedoraproject.org, i18n-bugs@lists.fedoraproject.org, mclasen@redhat.com, rstrode@redhat.com, tagoh@redhat.com Target Milestone: --- Classification: Fedora
Description of problem: Few fedora releases ago, Noto-Sans-Arabic was set to be the default. It was working fine and Arabic text was displayed in all web browsers using this font.
sometime in last few months, every web browser in fedora suddenly started prioritizing "Druid Kufi" font over noto-sans-arabic. which now looks makes arabic text looks jarring.
Interestingly, when running from live usb image, noto-sans-arabic is correctly priotirized and being used to render all arabic web pages, but only for FEW MINUTES and then suddenly it's switched to druid kufi!, without updating anything, just running Firefox for few minutes.
It's also reproducible after fresh install, the first 3 minutes of using the new fedora installation, Firefox and other browsers are displaying noto-sans then suddenly switch to druid kufi.
Version-Release number of selected component (if applicable): 38-39
How reproducible: Consistently
Steps to Reproduce: 1.Connect to internet 2.Open arabic webpage in firefox (ex, wikipedia) 3.text would be displayed with druid kufi instead of the default noto-sans-arabic which was chosen to be the default sometime around fedora 36.
Actual results: Arabic Text displayed with druid kufi font
Expected results: Arabic text should be displayed using noto-sans-arabic as was the case before.
Additional info: The font in gnome and top bars is still correctly displayed using noto-sans-arabic. It's browsers that exhibit the problem.
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(alawamiaz@gmail.c | |om) Doc Type|--- |If docs needed, set a value
--- Comment #1 from Akira TAGOH tagoh@redhat.com --- How's your font settings in firefox?
I tried browsing https://ar.wikipedia.org on firefox in freshly installed f39. I can't see "Droid Arabic Kufi" font family name in some debugging information when I inspected a page with the developer tool.
The font in gnome and top bars is still correctly displayed using noto-sans-arabic. It's browsers that exhibit the problem.
It might be most likely a problem on firefox since it works on desktop generally.
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Ali alawamiaz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(alawamiaz@gmail.c |needinfo?(tagoh@redhat.com) |om) |needinfo?(tagoh@redhat.com)
--- Comment #2 from Ali alawamiaz@gmail.com --- Ok some of my the points i reported are apparently wrong/inaccurate. I should have been more diligent before reporting, sorry.
The problem was somehow connected to my firefox account syncing, so now this testing is with now account syncing. So the following testing is all from live usb with no firefox account
current findings: 1. Using latest fedora image, I can reproduce the kufi font problem only by using private windows in firefox. normal windows are using the correct noto sans but private windows somehow use kufi in firefox. 2. Forcing change in the font settings of firefox doesn't seem to have an effect. 3. Gnome epiphany web is all Kufi, no noto at all. 4. Chrome/Chromium are using noto sans for webpages, but somehow tab titles are using kufi.
None of these problems are reproducible in other distros that use noto sans arabic as default. For example ubuntu which uses noto sans, correctly display noto sans in the everywhere in all of the previously mentioned 4 problematic scenarios .
Seeing that kufi font is somehow found to be used in wierd specific cases across several totally unrelated packages in fedora(epihany/chrome/firefox), and these findings are completely absent in ubuntu, I wonder what is the current fedora config of the kufi font? What are these applications doing that they somehow get kufi font to render some text only in fedora but not other distros?! I don't know anything about how fonts work in linux so i'm helpless here.
Thanks. @tagoh@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erack@redhat.com, | |gecko-bugs-nobody@fedorapro | |ject.org, | |jhorak@redhat.com, | |klaas@demter.de Assignee|tagoh@redhat.com |gecko-bugs-nobody@fedorapro | |ject.org Component|fontconfig |firefox Flags|needinfo?(tagoh@redhat.com) | |needinfo?(tagoh@redhat.com) |
--- Comment #3 from Akira TAGOH tagoh@redhat.com ---
None of these problems are reproducible in other distros that use noto sans arabic as default. For example ubuntu which uses noto sans, correctly display noto sans in the everywhere in all of the previously mentioned 4 problematic scenarios .
With Droid Arabic Kufi font installed? or without?
Seeing that kufi font is somehow found to be used in wierd specific cases across several totally unrelated packages in fedora(epihany/chrome/firefox), and these findings are completely absent in ubuntu, I wonder what is the current fedora config of the kufi font? What are these applications doing that they somehow get kufi font to render some text only in fedora but not other distros?! I don't know anything about how fonts work in linux so i'm helpless here.
We have google-droid-sans-fonts installed due to satisfy dependency for ghostscript. We know it has some problems on text rendering but we can't drop it because of it.
Anyway:
- Using latest fedora image, I can reproduce the kufi font problem only by using private windows in firefox. normal windows are using the correct noto sans but private windows somehow use kufi in firefox.
This looks more likely a firefox specific problem. let me reassign this to firefox so far.
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Ali alawamiaz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(tagoh@redhat.com) | |needinfo?(tagoh@redhat.com)
--- Comment #4 from Ali alawamiaz@gmail.com ---
With Droid Arabic Kufi font installed? or without?
Yes with Droid Arabic Kufi font installed, Ubuntu's firefox doesn't prioritize droid kufi over noto-sans. Also gnome epiphany browser on ubuntu uses noto sans, while fedora's gnome web browser completely favours kufi droid. The kufi droid isn't available as a package in ubuntu so I copied the ttf from fedora and installed it in ubuntu using gnome fonts app. can't reproduce the issue even after i reinstalled fontconfig in ubuntu to regenerate the fontcache. Intrestingly I believe ubuntu is using fonts-droid-fallback package That i beileve (don't know) links droid names to sans fonts as arabic noto fonts were historically dorid fonts. For example they have noto-kufi-arabic preinstalled which is exactly the same as droid kufi just different name but noto-sans-arabic is always prioritized. Not sure if this has any relevance.
This looks more likely a firefox specific problem. let me reassign this to firefox so far.
Possibly, but isn't that unlikely considering the problem is also replicated using gnome web on fedora but not on ubuntu's gnome web?
In addition, there are more problems with arabic font config in fedora. For example, if dejavu fonts are installed on fedora, they automatically become prioritized over anything noto for arabic. this happens in both Gnome web and firefox(private windows). Dejavu was the previously the default for arabic, considering it's very ugly and gets installed as dep for popular packages like vlc, I think this may warrant further investigation. Interestingly, Ubuntu still keeps dejavu preinstalled, but again it never get prioritized over noto sans for arabic like in fedora.
Thanks. @tagoh@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(tagoh@redhat.com) | |needinfo?(tagoh@redhat.com) |
--- Comment #5 from Akira TAGOH tagoh@redhat.com --- If you try this with new profile on firefox and/or new account on Fedora, does this still happen?
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
--- Comment #6 from Ali alawamiaz@gmail.com --- Yes, I'm still able to reproduce the issue after creating new profile in firefox, private windows still use kufi over noto.
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |petersen@redhat.com, | |pwu@redhat.com Assignee|gecko-bugs-nobody@fedorapro |tagoh@redhat.com |ject.org | Component|firefox |google-noto-fonts
--- Comment #7 from Akira TAGOH tagoh@redhat.com --- After a few investigation, I figured out that this may be fixed in google-noto-fonts package.
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
--- Comment #8 from Ali alawamiaz@gmail.com --- Good, thanks for your work.
Another problem regarding the Arabic font config is that if dejavu fonts gets installed, it automatically becomes the main font of webpages in both firefox and gnome web. I believe this bug has existed from the beginning since fedora switched to noto.
Could you reproduce the issue on your side?
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(tagoh@redhat.com) |needinfo?(alawamiaz@gmail.c | |om)
--- Comment #10 from Akira TAGOH tagoh@redhat.com --- Thank you for your suggestion. I think we need to submit Change for f41 if we want to change the default font from Noto Sans Arabic to Noto Sans Arabic UI. Do you want to do it?
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
--- Comment #11 from Jens Petersen petersen@redhat.com --- But why only Arabic seems to need the Noto UI font? I do think this is a good discussion topic, but let's tred carefully and make sure we get things right for Arabic. To me it seems worth discussing with upstream too.
https://bugzilla.redhat.com/show_bug.cgi?id=2251384
--- Comment #12 from Jens Petersen petersen@redhat.com --- Reading the Ubuntu thread (again?) it also seems the UI font is not universally preferred for content maybe only for UI. Maybe what we really need is a way to configure default language fonts separately for UI? (There was also previously debate about Arabic Naskh vs Arabic Sans, where I think we reverted to Sans.)
i18n-bugs@lists.fedoraproject.org