telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.95k stars 5.14k forks source link

Unicode Letters Can't Show in Telegram Desktop on Mac OS #6056

Closed chenrylee closed 2 years ago

chenrylee commented 5 years ago
### Steps to reproduce Install **Telegram Desktop** from **App Store** ### Expected behaviour Unicode letters, like **π”–π”Άπ”©π”³π”žπ”«π”žπ”° π”šπ”¦π”«π”‘π”―π”²π”«π”«π”’π”―**, can't show, ### Configuration **Operating system:** Tested on Mac OS 10.12 and above **Version of Telegram Desktop:** Test all versions so far **Used theme**: Midnight The letters show normally in Native Telegram for Mac.
CssHammer commented 4 years ago

Will this be fixed or what?

Aokromes commented 4 years ago

can you try on 1.9.1 beta?

CssHammer commented 4 years ago

can you try on 1.9.1 beta?

Yes, still wasn`t fixed. I see rectangles instead of letters

Aokromes commented 4 years ago

and on 1.9.21? :)

chenrylee commented 4 years ago

and on 1.9.21? :)

I'm using the latest MAS version (1.9.13), some still can't show. And I found an interesting thing: When the letters are in name (incl. quote & reply), it can't show; while the letters are in message, it shows normally.

doctor-frankenstein commented 4 years ago

Now i found in version 2.1 the special letters from UTF8 can display correctly at chat window, but still broken in profile, please check my screenshot

good at chat window

broken at profile

gaplo917 commented 4 years ago

Still not able to show unicode in username in telegram desktop 2.1.

Screenshot 2020-07-06 at 1 06 02 PM

left: Telegram MacOS right: Telegram Desktop Screenshot 2020-07-06 at 1 04 59 PM

Sample text

π‘‡π‘Žπ‘šπ‘Žπ‘˜π‘–
Liam0205 commented 4 years ago

Any progress on this issue?

Liam0205 commented 4 years ago

Telegram 2.1.13 on macOS reproduces this issue too.

ilya-fedin commented 4 years ago

Any progress on this issue?

there can't be any progress since font rendering is completely on Qt side

Aokromes commented 4 years ago

https://bugreports.qt.io/browse/QTBUG-59553

ilya-fedin commented 4 years ago

https://bugreports.qt.io/browse/QTBUG-59553

I dont' think that this bug is applicable for this issue, Qt has a problem with these glyphs with semibold style on any platform

Liam0205 commented 4 years ago

Any progress on this issue?

there can't be any progress since font rendering is completely on Qt side

Well, I doubt it...

These chars could be shown correctly on the page of profile modification.

image image

Liam0205 commented 4 years ago

To me, it seems to be a font selection issue, rather than font rendering.

ilya-fedin commented 4 years ago

To me, it seems to be a font selection issue, rather than font rendering.

Yes, Qt has problems with font selection (font fallback mechanism)

Liam0205 commented 4 years ago

To me, it seems to be a font selection issue, rather than font rendering.

Yes, Qt has problems with font selection (font fallback mechanism)

Copy that.

Would you provide a workaround to bypass this problem?

ilya-fedin commented 4 years ago

Would you provide a workaround to bypass this problem?

no, there are no workaround, unfortunately

ilya-fedin commented 4 years ago

These chars could be shown correctly on the page of profile modification.

fallback is broken with the semibold style for some unknown reason

Liam0205 commented 4 years ago

These chars could be shown correctly on the page of profile modification.

fallback is broken with the semibold style for some unknown reason

One of my friends reports that everything works fine on his macOS 10.15.5 (which is the same to mine). i.e., this issue is stably reproducible on my mac, but is stably irreproducible on his mac. Why would this happen?

ilya-fedin commented 4 years ago

Why would this happen?

It is better to ask Qt devs

Liam0205 commented 4 years ago

I believe there might be something other than Qt causes this issue. It may be font configuration of macOS system preference.

I'll test this later this week, on a new installed macOS. If there will be any clues, I'll report them here.

AndydeCleyre commented 4 years ago

I don't have access to macOS right now, but since SemiBold is mentioned here, I'll note that part of my workaround for fonts when building for Linux is replacing use of DemiBold with Bold, so you may want to try that:

$ sed -i 's/DemiBold/Bold/g' Telegram/lib_ui/ui/style/style_core_font.cpp

On my phone right now... That may not be proper syntax for the default sed on macOS.

stale[bot] commented 3 years ago

Hey there!

This issue will be automatically closed in 7 days if there would be no activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

WuglyakBolgoink commented 3 years ago

ping

ilya-fedin commented 3 years ago

ping

Connection timed out

0x1f415 commented 3 years ago

bumping as this continues to be a problem (on macOS).

interestingly the characters from the "Math Bold Script" set (eg π“ͺ𝓼𝓭𝓯) display as boxes while fraktur (π–†π–˜π–‰π–‹) text displays fine.

edit: oops, didn't see the "3rd party issue" tag.

ilya-fedin commented 3 years ago

There's no reason to bump, only Qt devs can fix it

csvnzzyd commented 3 years ago

all i see is square boxes.. did anybody find a resolution to this?

update: I was able to fix if by running this command in terminal (using Debian Buster 10)

sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core

stale[bot] commented 2 years ago

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!