You are not logged in.
Hi everyone! The letter ve from Arabic language (https://ar.wikipedia.org/wiki/%DA%A4) doesn't show in firefox, epiphany has the same problem. But every other program shows the letter properly, including gnome's text editor and other writing programs. I've installed every Arabic font from here. A solution was to force websites to use my defined fonts which contain this letter, but this is not a real solution since some websites use their predefined unique fonts which I like, it's also that the defaults are fonts that contain ve. Also a weird behavior shows with the default choices in firefox, that the same letters are missing while showing in another part in the same page (like this). Thanks in advance.
Last edited by AmrLou (2024-03-01 08:32:31)
Offline
fc-list :charset=06a4same letters are missing while showing in another part in the same page
solution was to force websites to use my defined fonts which contain this letter
Think about that…
What font does firefox resolve by default (use the webinspector to check the CSS) for the missing glyph?
Offline
What font does firefox resolve by default (use the webinspector to check the CSS) for the missing glyph?
It shows Arial. It also shows these ("TwitterChirp", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif) on Twitter. Although that is weird since I actually have Lateef as a default for Arabic in firefox. I also have a local font configuration which chooses Lateef for system-wide Arabic:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!-- Fallback fonts preference order -->
<alias>
<family>sans-serif</family>
<prefer>
<family>Lateef</family>
<family>Open Sans</family>
<family>Droid Sans</family>
<family>Roboto</family>
<family>Tholoth</family>
<family>Noto Sans Arabic</family>
</prefer>
</alias>What it makes it even weirder, when I manually delete Arial from the inspector, it switches to Ubuntu Arabic font.
Offline
fc-match Arial # correlate that w/ the output of "fc-list :charset=06a4"
FC_DEBUG=4 pango-view --font="Arial" -t "ڤ" | grep family:Fwwi, this is just resolved from DejaVu Sans for me
Offline
Unfortunately it didn't for me.
Offline
Unfortunately what didn't for you?
Please post the ouput of the commands I posted if you want more informed comments on your situation.
Offline
Whatever your Arial is claims to support that glyph, but probably doesn't.
Get rid of that font, replace it with a better™ version of arial or redefine Arial
<alias>
<family>Arial</family>
<prefer>
<family>Lateef</family>
</prefer>
</alias>The fontconfig you posted is btw. illegal, it's not closing the <fontconfig> tag and mozilla uses its own, way less tolerant, fontconfig parser.
If that's a literal copy and not just a clerical error on the forum, you need to fix that.
Offline
The fontconfig you posted is btw. illegal, it's not closing the <fontconfig> tag and mozilla uses its own, way less tolerant, fontconfig parser.
If that's a literal copy and not just a clerical error on the forum, you need to fix that.
It's a snippet, the original file is well closed. However, I deleted all of my system Arial fonts and the situation seems to be better, at least in epiphany which now utilizes my choices in fontconfig. Firefox is now using what seems to be ubuntu arabic ui, even though both twitter and wiki still show the same fonts used. Isn't there any way to just make sites use their own fonts? Since as I know most sites nowadays bring their fonts from servers and not dependent on the user. It's also worth noting that I've had installed (firefox-i18n-ar) package before and deleted it, but no changes after.
Offline
Since as I know most sites nowadays bring their fonts from servers
No? Or define "most sites", but the crucial question is whether the services you care about do.
If those do (correctly), those fonts would however be used over your local ones.
More importantly, though: do you still have problems displaying arabic text anywhere?
Fyi, the i18n package just translates the UI, it's irrelevant itr.
Offline
I meant the popular ones, or maybe my knowledge is limited.
More importantly, though: do you still have problems displaying arabic text anywhere?
No, it's all working good in other applications. I even tried making a file with the letter ve and the system showed it properly.
Now my main problem is the ubuntu arabic font firefox is defaulting now for arabic.
Offline
This here https://arbfonts.com/ubuntu-arabic-font-download.html ? Why is this a problem? Is it installed on your system?
fc-match Arial
fc-match sans-serif
FC_DEBUG=4 pango-view --font="sans-serif" -t "ڤ" | grep family:Offline
Update: I deleted ubuntu arabic font, and it solved the problem. I still don't understand why was it the default for firefox. However, thanks seth for your help. I'm really very grateful for your responses, and I have to say that you are one of the best guys in this forum here, I can't count how many times I searched for a problem to find you offering some troubleshoot to it. Thanks so much!!
Offline
This here https://arbfonts.com/ubuntu-arabic-font-download.html ? Why is this a problem? Is it installed on your system?
From here
fc-match Arial fc-match sans-serif FC_DEBUG=4 pango-view --font="sans-serif" -t "ڤ" | grep family:
It properly shows the glyph. Thanks so much for your help!
Offline