font display fix on mac (widths in int)

This commit is contained in:
Petr Vanek
2010-11-13 13:55:08 +01:00
parent 061c4cc5b8
commit 8787a21b67
+8
View File
@@ -232,6 +232,14 @@ void TerminalDisplay::setVTFont(const QFont& f)
{
QFont font = f;
#ifdef Q_WS_MAC
#if QT_VERSION >= 0x040700
font.setStyleStrategy(QFont::ForceIntegerMetrics);
#else
#warning "Correct handling of the QFont metrics requited Qt>=4.7"
#endif
#endif
QFontMetrics metrics(font);
if ( !QFontInfo(font).fixedPitch() ) {