I want Ubuntu 22.10 to display serif Arabic text in the Noto Naskh Arabic typeface while sans-serif Arabic text in the Noto Sans Arabic typeface.
How can I make Ubuntu install a default Arabic font for serif and another for sans-serif?
I want Ubuntu to follow a rule where, if it sees text whose typeface filename containing words like naskh or serif, it displays all that text in that particular typeface? And if another group of words are have typefaces with filenames containing words like sans or sans-serif, then Ubuntu would show all that text in the default sans-serif Arabic typeface?
Results of fc-match -a | head -10:
NotoSansArabicUI-Regular.ttf: "Noto Sans Arabic UI" "Regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSans-Bold.ttf: "Noto Sans" "Bold"
NotoSans-Italic.ttf: "Noto Sans" "Italic"
NotoSans-BoldItalic.ttf: "Noto Sans" "Bold Italic"
NotoSansArabicUI-Bold.ttf: "Noto Sans Arabic UI" "Bold"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
NimbusSans-Regular.pfb: "Nimbus Sans" "Regular"
locale:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=ar_EG.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
fc-match -a | head -102.locale– Gunnar Hjalmarsson Dec 04 '22 at 23:40LC_CTYPE=ar_EG.UTF-8, fontconfig uses Noto Sans Arabic UI at first hand as the Arabic sans font. That should make a difference, and if you don't see that you need to be even more specific about how you reached your conclusion. – Gunnar Hjalmarsson Dec 05 '22 at 00:49fonts-dejavu-corepackage is not an option, since a lot of other packages depend on it. The current setup, where DejaVu is de-prioritized as you put it, is the result of this long (veeery long) Discourse topic. Maybe you want to add a reply there? If you do, it will be seen by a few people with interest and knowledge in the topic. – Gunnar Hjalmarsson Dec 05 '22 at 14:48