Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.6.0
-
None
-
Windows RT (Windows 10) and Linux
-
/
Description
When reading e.g. https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/segoe-ui-symbol-font
it mentions there are zero width glyphs in the font that allow for superposing two characters so that coloration or plain superposition can be applied to multiple glyphs. It seems, though, that showing such a character sequence with Qt in e.g. a QLineEdit does not respect the glyph's zero width.
On Windows 10, or after installing the Segoe MDL2 Assets font, one can show this by using the example from the link above:
#include <QApplication> #include <QLineEdit> int main(int argc, char *argv[]) { QApplication a(argc, argv); QLineEdit w(QString::fromUtf8((u8"\uEA3A\uEA3B"))); QFont font(QStringLiteral("Segoe MDL2 Assets")); w.setFont(font); w.show(); return a.exec(); }
This requires VS 2015 on Windows or a compiler with Unicode string literal support.