Wrong Persian glyphs in default persian font for Ubuntu 23.10 Mantic Minotaur

Luckily, the latest version of Ubuntu OS (23.10 Mantic Minotaur) has resolved the issue with the default font by switching it to Noto-Sans Arabic, which also supports Persian. However, there remains an issue with the Persian Peh glyph, as evident in the screenshot.

enter image description here

As observed, the initial form of the Persian Peh is incorrect, while its middle form is accurate. I verified this on the Google Fonts test page by copying the text from my text editor, and it functioned without any issues.

enter image description here

I’m curious to find out if anyone else has encountered this issue and what steps can be taken to resolve it. Can anyone provide some guidance?

#UPDATE

I checked characters map and here is a screenshot of that. You can see that all forms of Peh are wrong except the middle form!

enter image description here

This is a bug with Noto Sans Arabic. We can fix the problem by switching to Noto Naskh Arabic, which is what my Firefox uses instead of Noto Sans Arabic for the correctly displayed part of https://en.wikipedia.org/wiki/Pe_(Persian_letter) . Let’s adjust this font setting:

gedit

  1. Open preferences. Observe the i‘jām upside down.

gedit preferences, bad font

  1. Uncheck "Use the system fixed width font (Ubuntu Mono 13)" in "Fonts & Colors".

fonts & colors preferences

  1. Select "Noto Naskh Arabic Regular". Don’t select the broken "Noto Sans Arabic". The i‘jām will now be correctly displayed.

gedit selecting Noto Naskh Arabic, good font

gnome-text-editor

  1. Open preferences. Observe the i‘jām upside down.

gnome-text-editor preferences, bad font

  1. Scroll down and turn on "Custom Font".
    gnome-text-editor custom font

  2. Select "Noto Naskh Arabic Regular". Don’t select the broken "Noto Sans Arabic". The i‘jām will now be correctly displayed.

gnome-text-editor selecting Noto Naskh Arabic, good font

Answered By: Daniel T

I fixed the problem using newer version of NotoSansArabic-Regular from google repos. The NotoSansArabic-Regular version that is used in Ubuntu 23.10 was from 2020.

I copied over the NotoSansArabic-Regular.ttf from downloaded repo to the folder /usr/share/fonts/truetype/noto using this command:

sudo cp /home/<username>/Downloads/Noto_Sans_Arabic/static/NotoSansArabic-Regular.ttf /usr/share/fonts/truetype/noto/

then refreshed the cache for the fonts:

sudo fc-cache -r -v

then I logged out and logged in again and the problem is resolved.

Answered By: Mahyar Pasarzangene
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.