Closed YousefSaber closed 4 years ago
That's the settings from custom fonts.conf:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
</fontconfig>
You can put it into ~/.config/fontconfig/conf.d/99-default.conf and your system will use the anti-aliasing settings from custom fonts.conf
Here is how I fixed this issue:
- Close Telegram
- Create directory:
~/.fonts
- Add a font with its different weights [I used Vazir]
- Create file:
~/.fonts.conf
and add these lines to it:<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <match target="pattern"> <test name="family" qual="any"> <string>sans serif</string> </test> <edit mode="assign" binding="same" name="family"> <string>Vazir</string> </edit> </match> <dir>~/.fonts</dir> </fontconfig>
- Clear font caches:
fc-cache -f -v
rm -r ~/.cache/fontconfig_11
- Now open Telegram :)
this doesn't work with normal binaries from telegram website on Kubuntu 20.04 Beta
.
i created ./fonts/fonts.conf
and added these lines to it and installed vazir fonts to ./fonts
.
any ideas?
@ilya-fedin ?
~/.config/fontconfig/conf.d/99-default.conf
@ilya-fedin thanks.i forgot to write the font name with capital letter and that was the problem.now it works
can i also change english fonts to something else like Open_Sans
?
no, you can't without patching the sources
@ilya-fedin what is the default font?does it by default use open_sans or noto_sans in my case?(im on kubuntu and default system font is noto sans) im confused because to me it seems a little different than windows version binary
Open Sans
I'm going to close this issue after nearly more than a one and half year of opening since the issue is fixed on Ubuntu 20.04 with telegram version 2.01 in both the executable application and snap app ( didn't test the flatpak app ) I'll reopen this issue if it surfaced again.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
English font style is good but Arabic font style isn't good it's some how bold which I don't like tried to install GNOME tweaks to change the font but I couldn't succeed
this is the desired Arabic font style which was present in Ubuntu 18.04.1 on telegram
but this is the Arabic font style in Telegram which I don't like
Operating system:
Ubuntu Cosmic Cuttlefish (development branch) using GNOME shell v3.30 as desktop environment
telegram v1.3.14 installed from a tar.xz from your official website ( to get updates quickly ) https://desktop.telegram.org/
please make sure that this issue will be avoided in the official final release of Ubuntu 18.10