Tdesktop: Persian font

Created on 8 May 2020  Â·  99Comments  Â·  Source: telegramdesktop/tdesktop

Hi, I installed version 2.1.3.
The fonts are cluttered and irritate the eyes
https://imgur.com/hf0M8rr
Please return the font to version 2.1. You can't read the text well now

waiting for answer

Most helpful comment

Now Vazir font that was requested by Persian people for years and years is used

All 99 comments

Now Vazir font that was requested by Persian people for years and years is used

I use it for Arabic and the new font is just horrible, Windows is terrible when it come to rendering fonts using any Arabic traditional fonts just makes it worse on windows because windows will end up blurring all non-rough edges (which is basically the whole thing).

The preferred font for Arabic or Persian or whatever language using the Arabic abjads is Tahoma and it's even the preferred fonts in all academic paper, communications and formal letter writing because of how nice and clean it renders out.

Telegram as it is right now is simply unusable by any users relays on those languages and it's not even possible to easily change this font either.

Decide between yourself which font you want. In the previous discussion, Persian people said that Vazir is much better than the old font.

Excuse me, by Persian people you mean a total of 7 people participating in issue? a great sample to represent the tens of million users.

Regardless, this is not a topic about Persians and non-Persians, I'm not a Persian nor i talk in behave of them or any other "Ethnicity".

I'm simply stating the facts, Windows is horrible at rendering fonts, any Arabic traditional renders with serious blur and it's a known issue in windows, you can't just enforce bad quality font render on all users and disregard everyone else providing a terrible UX and awful UI for everyone, I've updated telegram just minutes ago and my eyes are already tearing here.

Provide some sort of easy font selector for those users to use their font of choice and let everyone else live in peace.

Excuse me, by Persian people you mean a total of 7 people participating in issue?

https://github.com/telegramdesktop/tdesktop/issues?q=is%3Aissue+persian

In almost every issue about the font, there are requests to use Vazir

you can't just enforce bad quality font render on all users and disregard everyone else providing a terrible UX and awful UI for everyone

They said that Tahoma is bad UX, you said that Vazir. Who are right? ;)
I don't know

I say that Vazir font is very readable than Tahoma font in Persian scripts.

Note: "Sahel" font is more compatible with Persian text than Vazir.
https://github.com/rastikerdar/sahel-font

Excuse me, by Persian people you mean a total of 7 people participating in issue? a great sample to represent the tens of million users.

Regardless, this is not a topic about Persians and non-Persians, I'm not a Persian nor i talk in behave of them or any other "Ethnicity".

I'm simply stating the facts, Windows is horrible at rendering fonts, any Arabic traditional renders with serious blur and it's a known issue in windows, you can't just enforce bad quality font render on all users and disregard everyone else providing a terrible UX and awful UI for everyone, I've updated telegram just minutes ago and my eyes are already tearing here.

Provide some sort of easy font selector for those users to use their font of choice and let everyone else live in peace.

we asked feedback on semiofficial channel, that was all we got.

Now Vazir font is used which was requested by Persian people for years and years

This font is very ugly and tiny.
Please create a feature that allows you to select fonts.
You impose this font on us

Please create a feature that allows you to select fonts.

90

image

:/

Please create a feature that allows you to select fonts.

90

It is very small. Make the font bigger, maybe the problem will be solved

i think its best persian font ever

I have a question:
Which version of Vazir is used for Telegram 2.3.1?

Latest version of Vazir is: 25.0.0
https://github.com/rastikerdar/vazir-font/releases

Which version of Vazir is used for Telegram 2.3.1?

I took it from the dist folder from master, from the Without-Latin subfolder

well as a Farsi & Arabic writer, i think this argument will go on forever
and each language should be able to use its own best language
and as many none middle eastern might think

Farsi & Arabic are not the same language/font
even though they have similarities

what do you mean?
Do you mean the bold part?
making Farsi/Arabic bold is tricky in general
cus for a very long time bolding these was not possible, so no one's eyes are used to it
so they just call something "new" to the eyes, "ugly"
hmmm

This new Font is really good, Tnx

@ilya-fedin Tdesktop 2.1.3 Stable on windows 10 pro 1909
I love the font and it is really readable and easy on eyes.
The size is a little small though ,thats the problem with the font itself.but can you increase the font for farsi language a little?

This new Font is really good, Tnx

Are you saying about font in the release or in the test artifact? :thinking:

@ilya-fedin in the release!
in fact I said about the linux version
the update received several minutes ago!

ok

Does this font engine look better?
https://github.com/ilya-fedin/tdesktop/actions/runs/99402698

what is this test build about?

what is this test build about?

for these disgruntled people

@ilya-fedin Tdesktop 2.1.3 Stable on windows 10 pro 1909
I love the font and it is really readable and easy on eyes.
The size is a little small though ,thats the problem with the font itself.but can you increase the font for farsi language a little?

ok.don't worry about the font.im sure people WILL love this new font.
anyway can you answer my question about the font size please?

anyway can you answer my question about the font size please?

I don't know any way to increase size only for specified writing system
And I think preston won't increase font size for all writing systems

@ilya-fedin can you please check it out later or ask preston about changing font for specified writing system?

btw its not much of a big deal.i just increased the scaling and its perfect now

can you please check it out later or ask preston about changing font for specified writing system?

As I already said - looks like there are no API for that

Ofc Vazir is better than Tahoma, but, there is a big need to add a font selector for tdesktop
I use arch linux, idk why when I install "Iran Nastaliq" font, tg font will switch to that, so I have to delete that font to get back to Vazir.
So adding a font selector to tdesktop is a good option that keeps everyone happy.

so I have to delete that font to get back to Vazir.

Why not just to make it the preferred font via fontconfig?

https://github.com/ilya-fedin/tdesktop/actions/runs/99402698

I got one feedback. Can try this build anyone else?
This is a build with different font engine - freetype
It displays font with different hinting/antialiasing

1.i don't know how to increase size in fontconfig. I tried something but
it didnt work
2.i use windows 10 and there is no fontconfig in it ofcourse

.i don't know how to increase size in fontconfig. I tried something but it didnt work

I answered to @mehdiirh

1.i don't know how to increase size in fontconfig. I tried something but it didnt work 2.i use windows 10 and there is no fontconfig in it ofcourse

you can use https://github.com/ysc3839/FontMod/ to test witch font fits better you.

So finally after many years, this feature was implemented to Telegram Desktop.
Thank you @john-preston and other contributors and participants.

so I have to delete that font to get back to Vazir.

Why not just to make it the preferred font via fontconfig?

Doesn't really help. Tried before

Doesn't really help. Tried before

There are tags for different writing systems. You can find them in files in /etc/fonts/conf.d that named like 65-fonts-persian.conf, maybe they can help you to fix the fallback?

image
I can see this in my 65-fonts-persian.conf

btw, maybe I should warn: Vazir fallback was added only in official builds (static binary, flatpak, snap)
Distro maintainers always remove these things to use system fonts.

Maybe Vazir should be used only start from 125% scaling?

The fonts are cluttered and irritate the eyes.
Please return the font to version 2.

you can use https://github.com/ysc3839/FontMod/ to test witch font fits better you.

thanks,But I don't need to test."Vazir" is waaaaaay better than before.

The fonts are cluttered and irritate the eyes.
Please return the font to version 2.

i'm pretty sure you are not used to it yet,it is not "irritating" its just "new"
can you try to use Tdesktop for few days and then decide on this?

Maybe Vazir should be used only start from 125% scaling?

im sure lots of iranian users don't even know/use scaling so i guess not

edit:
Also,if you change between 100% and 125% because the font changes completely you get a little confused everytime because it always looks"new" to you

The fonts are cluttered and irritate the eyes.

@yar72 please test it :

https://github.com/ilya-fedin/tdesktop/actions/runs/99402698

In this, the font are not irritate your eyes.

https://github.com/ilya-fedin/tdesktop/actions/runs/99402698

I got one feedback. Can try this build anyone else?
This is a build with different font engine - freetype
It displays font with different hinting/antialiasing

This one looks a little thicker and I think it looks good but it feels like everything is bold so i like the release version

The fonts are cluttered and irritate the eyes.
Please return the font to version 2.

The fonts are cluttered and irritate the eyes.
Please return the font to version 2.

i'm pretty sure you are not used to it yet,it is not "irritating" its just "new"
can you try to use Tdesktop for few days and then decide on this?

I wrote here because I used it!!!!
I am comfortable with my font.

https://github.com/ilya-fedin/tdesktop/actions/runs/99402698

I got one feedback. Can try this build anyone else?
This is a build with different font engine - freetype
It displays font with different hinting/antialiasing

This one looks a little thicker and I think it looks good but it feels like everything is bold so i like the release version

In my opinion, in the test version, the difference between bold font and regular font in a sentence is displayed better than the release.

👇 in the test
Untitled
👆 in the release

In the release, you can hardly understand the difference between bold font and regular font

In my opinion, in the test version, the difference between bold font and regular font in a sentence is displayed better than the release.

This is because the artifact is based on 2.1.3 and you're comparing with 2.1.4. Compare with 2.1.3 release ;)

:·)))))

This is because the artifact is based on 2.1.3 and you're comparing with 2.1.4. Compare with 2.1.3 release ;)

The 2.1.3 release font looks sharp
and artifact font looks blurry and bold as you and others said
@ilya-fedin Can you make it something between these two?

Can you make it something between these two?

:thinking: maybe QFont::NoSubpixelAntialias + QFont::PreferVerticalHinting (which should be the same as subpixel=none + hinting=hintslight on linux)

This is an artifact with grayscale antialiasing and light hinting
https://github.com/ilya-fedin/tdesktop/actions/runs/99942874
By default GDI is used, FreeType can be activated by typing freetype in the settings (look at https://github.com/telegramdesktop/tdesktop/wiki/Hidden-modes)

https://github.com/ilya-fedin/tdesktop/actions/runs/99942874

I think, rendering should become much better for low-DPI devices, Persian characters are very clear for me now

This is the same artifact as previous, but based on 2.1.4
https://github.com/ilya-fedin/tdesktop/actions/runs/99956516

This is an artifact with grayscale antialiasing and light hinting
https://github.com/ilya-fedin/tdesktop/actions/runs/99942874
By default GDI is used, FreeType can be activated by typing freetype in the settings (look at https://github.com/telegramdesktop/tdesktop/wiki/Hidden-modes)

Very well, now everyone can choose their favorite rendering
as well Both renderings are better than before 👌
thank you very much 💙

Is there a way to choose use different font for Arabic language?
Because what is good For Farisi is may be not good for Arabic, these are different languages totally.
So, please change the Arbic font If it possible, without changing the Farisi font.

Is there a way to choose use different font for Arabic language?

Has the Arabic font changed as well?

Can't we just uses any fonts that we like ? (I did it before - Regedit)

Has the Arabic font changed as well?

In last ver. 2.1.4 the Arabic font changed to The Farisi font.

I mean Persian by Farisi word.

Can you screenshot how it looks like now and how it should look like?

Can you screenshot how it looks like now and how it should look like?

Previously I was edited it from registry, and I think It was a default font. but now It changed to:

image

the default font was someting near this:

image

and I was edited my font to: Arabic UI Text Bold
image

this edting was in:

Computer\
HKEY_LOCAL_MACHINE\
SOFTWARE\
Microsoft\
Windows NT\
CurrentVersion\
FontSubstitutes

MS Shell Dlg 2

I suggest to use Noto Naskh for Arabic language
https://noto-website-2.storage.googleapis.com/pkgs/NotoNaskhArabic-hinted.zip

If Windows will render it perfectly.

Try to make font substitute for DAOpenSansRegular, DAOpenSansRegularItalic, DAOpenSansSemibold and DAOpenSansSemiboldItalic instead of MS Shell Dlg 2

Previously I was edited it from registry, and I think It was a default font. but now It changed to:

If this is Segoe UI, then your issue will be fixed in the new version

Has the Arabic font changed as well?

Yes, I don't think this was intended, no?

2 1 2
2 1 3

2.1.4 looks exactly like 2.1.3.

I will not open a new issue as this seems to be caused by the change of the Persian font. Please look into options that fix this by at least reverting the Arabic font to the one used in 2.1.2. You can see how the new font looks harsh compared to one in version 2.1.2.

Yes, I don't think this was intended, no?

This was not intended
I hope this will be fixed with Thai/Khmer/Armenian fix

This is the same artifact as previous, but based on 2.1.4
https://github.com/ilya-fedin/tdesktop/actions/runs/99956516

Thai language was fixed in this artifact.

Seems you are using windows. Just stop using that shit, since windows has font rendering issues for centuries!

New version of Vazir font (Version 26.0) is released. Please use it in next version of TDesktop.
Thank you.

@ilya-fedin why selecting font is not customizable ?
i think every people love a font and reverese don't like some font

@ilya-fedin why selecting font is not customizable ?

This is not a question for me, I want a font chooser too :(

@ilya-fedin why selecting font is not customizable ?

This is not a question for me, I want a font chooser too :(

it's mean it is impossible ?
or i must waiting for next releases ?

it's mean it is impossible ?

It's mean you should ask one of the official devs. I'm just a contributor.

it's mean it is impossible ?

It's mean you should ask one of the official devs. I'm just a contributor.

ok please mention one of them to this issue, maybe he accepted our request!

ok please mention one of them to this issue, maybe he accepted our request!

@john-preston

@john-preston
Why there are no font chooser?

Of course this vazir font is better than previous one, but I should at least have the opportunity to use my own system-wide font for persian which was IRANSans and I like it more.

It's licensed and cannot be used in telegram-desktop client of course, I'm not suggesting that.

I'm just suggesting an option to choose system-wide font instead of Vazir or whatever font telegram-desktop ships with its package.

Actually telegram-desktop needs to integrate more with users desktop. Currently it is the only "foreign looking" app in my desktop which doesn't respect my choices of theme, font, etc. and has no integration with freedesktop standarda e.g. MPRIS2 for music playback.

Currently it is the only "foreign looking" app in my desktop

Probably you doesn't have electron apps or QML/proprietary Qt apps ;)

Probably you doesn't have electron apps or QML/proprietary Qt apps ;)

Yes, all my other apps are pure GTK3 but Firefox, which supports GTK and respects my choices such as themes and fonts.

image
Font issue, faced by Urdu-language users is far worst than Persian/Arabic users. After updating telegram desktop to 2.1.6, all non-Arabic and non-Persian characters are breaking up. I have tried installing different fonts in PC like Open Sans and Vezir, but din't work. It is very difficult and almost impossible to read messages for many users.

+1 for the above post mentioning problem in Urdu.
It was a poor decision to switch to a font used only by Persians. Arabic users are not liking the font for cosmetic reasons. But for Urdu readers, the problem is worse — the new font is broken and non functional. It lacks support for Urdu-specific characters.
The best solution would be to implement a font selector for user customization. But meanwhile please revert to previous font.

The best solution would be to implement a font selector for user customization. But meanwhile please revert to previous font.

The best solution would be respecting user's selected font for desktop.

@Aokromes @ilya-fedin IMO this must have been tested more thoroughly as there are multiple languages affected by this change, that the "Vazir" font might not support.

Not to mention the rendering/shaping/hinting/anti-aliasing issues with some operating systems.

I suggest reverting these changes and falling back to operating system fonts as they can support more languages, be changed system wide and will help a more consistent experience across with the whole desktop, until a better solution is found.

Also according to the commit message this must be a fallback font which it is not! It is used and even overrides the system fonts for Farsi/Arabic/Urdu ...etc

@Aokromes @ilya-fedin IMO this must have been tested more thoroughly as there are multiple languages affected by this change, that the "Vazir" font might not support.

Not to mention the rendering/shaping/hinting/anti-aliasing issues with some operating systems.

I suggest reverting these changes and falling back to operating system fonts as they can support more languages, be changed system wide and will help a more consistent experience across with the whole desktop, until a better solution is found.

Also according to the commit message this must be a fallback font which it is not! It is used and even overrides the system fonts for Farsi/Arabic/Urdu ...etc

we asked feedback multiple times the amount of answers was very low, ofc changing non-farsi languages is unwanted.

  • I think the main issue here is hinting of the new font. Tahoma is of course optimized very well for low sizes, both by having hinting and having a better design for small text. Segoe UI is also provided by Microsoft as somehow a replacement for Tahoma and is very nice.
  • Newer versions of Vazir has supported Urdu and Pashto letters, https://github.com/rastikerdar/vazir-font/releases so it resolved some of the mentioned issues that were in the shipped font. Lots of people including me like the font specially at higher DPI screens.
  • Noto Naskh Arabic is referred in this thread which is good as being default on Android, I like to suggest Noto Sans Arabic also if you see shipping a font is a necessity. It is preinstalled on Linux distributions also and see that somehow having a style both useful for Arabic and Persian people.

Let's compare suggestions here and may vote to them here (or maybe eventually in Telegram itself?), feel free to use GitHub reaction using Emojis I've put for each font,

Vazir :tada:

image
image

Noto Sans Arabic :+1:

https://noto-website-2.storage.googleapis.com/pkgs/NotoSansArabic-hinted.zip

image
image

Noto Naskh Arabic :laughing:

image
image

Segoe UI :rocket:

(so not shipping the font along Telegram and using the new system default on Windows)
image
image

Tahoma :eyes:

(previous font)
image
image

:-1: if none of them :)

Why are Noto Naskh Arabic and Segoe UI both marked with a rocket?

Oops, fixed :)

this issue is still valid?

As I said before, IMO it is not a good practice to hardcode using a specific font for an entire writing script, there are a dozen or so of languages affected by this changes. Operating systems have a more complete set of fonts that support almost all languages for the Arabic script.

Maybe change only Persian font to Vazir as it turns out that people like it. I don't know if this is possible though.

I don't know if this is possible though.

No, Qt doesn't have such APIs.

@ilya-fedin Can't it be an option for user to choose between shipped font (currently Vazir) and system-wide font?

Can't it be an option for user to choose between shipped font (currently Vazir) and system-wide font?

Core developers are against adding any options for choosing fonts, AFAIK

Compiling with -DDESKTOP_APP_USE_PACKAGED_FONTS=ON uses system-wide font.

In case anyone is willing to compile it because of this issue like me.

this ticket can be closed?

1 month without answer, if this bug is still valid open a new ticket with updated version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abhyrz picture abhyrz  Â·  3Comments

ghost picture ghost  Â·  3Comments

Mindstormer619 picture Mindstormer619  Â·  3Comments

DRSDavidSoft picture DRSDavidSoft  Â·  3Comments

Liudvikas picture Liudvikas  Â·  3Comments