-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certain special characters are not shown on Windows #4939
Comments
It seems that it can happen that the used font does not contain the used characters. See https://forum.qt.io/topic/82243/some-unicode-characters-not-displayed-on-ui/3 There it is suggested that this can be checked with the following snippet: QFont f("DejaVu sans");
QFontMetrics fm(f);
qDebug() << fm.inFont(QChar(2399)) << fm.inFont(QChar(2386)); I guess we'd instead want to use the font from our main application instead of providing the font name explicitly... (And obviously we'll have to use different character codes) @davidebeatrici you said you can reproduce - could you try to verify that these characters are contained in the used font? |
QFontMetrics fm(qApp->font());
qDebug() << fm.inFont(QChar(0x13AD)) << fm.inFont(QChar(0x13AA)) << fm.inFont(QChar(0x13A2))
<< fm.inFont(QChar(0x13AC)) << fm.inFont(QChar(0x13AD)) << fm.inFont(QChar(0x13BE))
<< fm.inFont(QChar(0x13B7));
|
Hm okay. Btw.: Why did you label this issue as |
I'm pretty sure it's an upstream bug because Windows has no issues showing those characters. The ticket is still open because we have to either find a workaround or fix the issue in Qt. |
I guess in order to verify that this is an upstream Bug, we'd have to create a minimal example that also fails to display this String. Should that minimal example be capable of displaying this String, then the issue is probably on our side somewhere 🤔 |
Done: https://github.com/mumble-voip/qt_unicode_test
|
Upstream report: https://bugreports.qt.io/browse/QTBUG-93183 Until proven otherwise I'll close this as an upstream bug |
@Krzmbrzl Shouldn’t this be listed as a known issue in our release notes then? Or is this specific to master rather than our stable too? |
It seems to only be an issue with 1.4.0 snapshots. |
No, it's an issue in 1.3.x too. I didn't try to reproduce in 1.2.x. |
@davidebeatrici Did you verify that? 'cause if I remember correctly @Natenom mentioned that this was only observed since 1.4.0 snapshots 🤔 |
|
Ah I missed that one... I'll add it to the list of known issues |
Looks like it was added to the release notes (on GitHub) 👍 |
I removed the note, thanks |
@Snowknight26 Was the string rendered correctly in 1.4.274 as well? |
It was, yes. |
Reported by @Natenom.
Example string:
ᎭᎪᎢᎬᎭᎾᎷ
All characters are shown as empty space.
The text was updated successfully, but these errors were encountered: