How to change the font used by Telegram Desktop installed from rpmfusion repositories | how to

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">
 Artificial oblique for fonts without an italic or oblique version

        <test name="family"><string>Open Sans</string></test>
        <edit name="family" mode="assign" binding="strong">
        <test name="family"><string>Open Sans Semibold</string></test>
        <edit name="family" mode="assign" binding="strong">


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.

1 Like