Currently, when we install Telegram desktop version from rpmfusion repositories, the font he chooses for Persian display may not be suitable. For example, if the google-droid-sans-fonts package is installed, a Kufic font will be selected for display, which is not suitable for a messenger.
Since the desktop version of Telegram in the repositories tries to use the Open Sans font, we can set our own font instead by setting the fontconfig. How to do this is briefly explained in this link.
For example, if we have the Minister’s font (just drop the font in the fonts./1 directory), we can create a file with the following content:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!--
Artificial oblique for fonts without an italic or oblique version
-->
<match>
<test name="family"><string>Open Sans</string></test>
<edit name="family" mode="assign" binding="strong">
<string>Vazir</string>
</edit>
</match>
<match>
<test name="family"><string>Open Sans Semibold</string></test>
<edit name="family" mode="assign" binding="strong">
<string>Vazir:style=bold</string>
</edit>
</match>
</fontconfig>
And put it in the config / fontconfig / conf.d
. directory with the .conf extention. For example, we can name it 90-td.conf
.
Translated from: نحوه تغییر قلم فارسی مورد استفاده توسط تلگرام دسکتاپ نصب شده از مخازن rpmfusion
ps: as it is a how to I made it as wiki that more users can change if something is wrong.