I used a simple code to test display text, so I dont think it have bug.
Here is the code:
mDisplayFont.setFamily("VT2012ADSymbols");
mDisplayFont.setFamily("VT2012ADSymbols");
To copy to clipboard, switch view to plain text mode
{
int key = 66;
mDisplayFont.setPointSize(48);
painter.setFont(mDisplayFont);
mDisplayFont.setPointSize(72);
painter.setFont(mDisplayFont);
mDisplayFont.setPointSize(100);
painter.setFont(mDisplayFont);
mDisplayFont.setPointSize(200);
painter.setFont(mDisplayFont);
}
void MainWindow::paintEvent(QPaintEvent *event)
{
QPainter painter(this);
int key = 66;
mDisplayFont.setPointSize(48);
painter.setFont(mDisplayFont);
painter.drawText(50, 200, QString(QChar(key)));
mDisplayFont.setPointSize(72);
painter.setFont(mDisplayFont);
painter.drawText(150, 200, QString(QChar(key)));
mDisplayFont.setPointSize(100);
painter.setFont(mDisplayFont);
painter.drawText(250, 200, QString(QChar(key)));
mDisplayFont.setPointSize(200);
painter.setFont(mDisplayFont);
painter.drawText(350, 200, QString(QChar(key)));
}
To copy to clipboard, switch view to plain text mode
I tried my font in both libre office and microsoft word ---> no problem happen.
I run the same code with both Qt in Window and in openSUSE: result like post #1.
If font have bug ---> libre office and ms word must display wrong
If code have bug ---> result in window and SUSE must display the same wrong
That make me confused X__X
Bookmarks