What is Nostr?
Habeeb / Habeeb Al Jamaheer
npub1qv5…mx8m
2024-11-04 17:47:41

Habeeb on Nostr: If you use XFCE terminal or maybe other terminals, and you changed the font to ...

If you use XFCE terminal or maybe other terminals, and you changed the font to something like JetBrains Mono, you will notice that Arabic is broken. To fix this, I did the following:

In ~/.config/fontconfig/fonts.conf I have the following:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<alias>
<family>monospace</family> <!-- Font family -->
<prefer>
<family>JetBrains Mono</family> <!-- The font you want to use -->
<family>Hack</family> <!-- Fallback -->
<family>Symbols Nerd Font Mono</family> <!-- Fallback -->
</prefer>
</alias>
</fontconfig>

The order is important! JetBrains Mono doesn't contain Arabic characters, so you have to use Hack, DejaVu Sans Mono, or any other font as a fallback for characters that are not included.

Log out and log in, and change the font of the terminal to Monospace. The font you chose in fonts.conf will be selected. Note that this font is also applied to other applications like Firefox.




#Linux #Arabic
Author Public Key
npub1qv50yj64px0nm2xua48qf5sdentws2r06qf3jpd5wnkmahp0kh3qz2mx8m