#include #include #include #include #include #include #include int main(int argc, char *argv[]) { // application QApplication app(argc,argv); // font with limite support for non-western chars QFont font("Courier"); QFont::insertSubstitution("Courier","Arial"); // use font and trigger substitution // run this from within the debugger (under Windows) // this causes the following "Application Output" messages in the debugger: // OpenType support missing for "Courier New", script 11 // OpenType support missing for "Arial", script 11 // OpenType support missing for "MS UI Gothic", script 11 // OpenType support missing for "SimSun", script 11 // OpenType support missing for "Segoe UI Emoji", script 11 // OpenType support missing for "Segoe UI Symbol", script 11 static constexpr char text[] = "\xe0\xa4\xa6\xe0\xa5\x87\xe0\xa4\xb5\xe0\xa4\xa8\xe0\xa4\xbe\xe0\xa4\x97\xe0\xa4\xb0\xe0\xa5\x80"; QLabel *label = new QLabel(text); label->setFont(font); QGridLayout *layout = new QGridLayout(); layout->addWidget(label,0,0); QWidget widget; widget.setLayout(layout); widget.show(); return QApplication::exec(); }