<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt 5.7.0 Font Rendering Problem]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">I got a QWidget / QPainter font rendering problem on Windows 10 64 bit desktop using Qt 5.7.0.</p>
<p dir="auto">Look the following screenshots. Using Qt the space between 'tt' and 'ti' is missing at Calibri and Carlito font:</p>
<p dir="auto">Qt: <a href="https://s19.postimg.org/dzl1pst8z/image.png" target="_blank" rel="noopener noreferrer nofollow ugc">https://s19.postimg.org/dzl1pst8z/image.png</a></p>
<p dir="auto">Wordpad (Windows): <a href="https://s19.postimg.org/9rq9h1rtf/Wordpad_Windows.png" target="_blank" rel="noopener noreferrer nofollow ugc">https://s19.postimg.org/9rq9h1rtf/Wordpad_Windows.png</a></p>
<p dir="auto">LibreOffice: <a href="https://s19.postimg.org/9t07agtn7/Libre_Office.png" target="_blank" rel="noopener noreferrer nofollow ugc">https://s19.postimg.org/9t07agtn7/Libre_Office.png</a></p>
<p dir="auto">Sourcecode of the Qt screenshot:</p>
<pre><code>#include &lt;QApplication&gt;
#include &lt;QWidget&gt;
#include &lt;QPainter&gt;

class Widget : public QWidget
{
public:
	Widget();

protected:
	void paintEvent(QPaintEvent *);
};

Widget::Widget()
{
	setAutoFillBackground(true);
	setPalette(Qt::white);
}

void Widget::paintEvent(QPaintEvent *)
{
	QPainter painter(this);

    painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);

    QFont Calibri_18_Normal("Calibri", 22, QFont::Normal);
    QFont Calibri_18_Bold("Calibri", 22, QFont::Bold);
    QFont Arial_18_Normal("Arial", 22, QFont::Normal);
    QFont Arial_18_Bold("Arial", 22, QFont::Bold);
    QFont Carlito_18_Normal("Carlito", 22, QFont::Normal);
    QFont Carlito_18_Bold("Carlito", 22, QFont::Bold);

    int y = 100;

    painter.setFont(Calibri_18_Bold);
    painter.drawText(200, y += 40, "Qt: Look for missing space between 'tt' and 'ti'");

    painter.setFont(Calibri_18_Normal);
    painter.drawText(200, y += 80, "Calibri: Rating Betting Setup - (Windows Clear Type)");
    painter.setFont(Calibri_18_Bold);
    painter.drawText(200, y += 40, "Calibri: Rating Betting Setup - (Windows Clear Type)");

    painter.setFont(Arial_18_Normal);
    painter.drawText(200, y += 80, "Arial: Rating Betting Setup - (Windows)");
    painter.setFont(Arial_18_Bold);
    painter.drawText(200, y += 40, "Arial: Rating Betting Setup - (Windows)");

    painter.setFont(Carlito_18_Normal);
    painter.drawText(200, y += 80, "Carlito: Rating Betting Setup - (Open Source, LibreOffice)");
    painter.setFont(Carlito_18_Bold);
    painter.drawText(200, y += 40, "Carlito: Rating Betting Setup - (Open Source, LibreOffice)");
}

int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
	Widget widget;
	widget.showMaximized();
	return app.exec();
}
</code></pre>
]]></description><link>https://forum.qt.io/topic/70529/qt-5-7-0-font-rendering-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 02:05:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/70529.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Aug 2016 19:35:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 5.7.0 Font Rendering Problem on Tue, 23 Aug 2016 19:58:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mireiner">@<bdi>mireiner</bdi></a> said:</p>
<blockquote>
<p dir="auto">But why are doing the native Windows program 'WordPad' and 'LibreOffice' on Windows (based on JAVA) just fine?</p>
</blockquote>
<p dir="auto">No idea. My suspicion is that it depends how exactly the text rendering is done at the low-level (how the API is used). Sadly I don't know of a way to disable the ligatures in Qt.</p>
]]></description><link>https://forum.qt.io/post/343770</link><guid isPermaLink="true">https://forum.qt.io/post/343770</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Tue, 23 Aug 2016 19:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.7.0 Font Rendering Problem on Tue, 23 Aug 2016 23:39:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>kshegunov</bdi></a><br />
But why are doing the native Windows program 'WordPad' and 'LibreOffice' on Windows (based on JAVA) just fine? They all got spaces between 'tt' and 'ti'.</p>
<p dir="auto">Before I began Qt programming I did Microsoft MFC programming. MFC applications on Windows also got spaces between 'tt' and 'ti' using these fonts.</p>
<p dir="auto">Without spaces between 'tt' and 'ti' the fonts looks ugly to me.</p>
]]></description><link>https://forum.qt.io/post/343768</link><guid isPermaLink="true">https://forum.qt.io/post/343768</guid><dc:creator><![CDATA[mireiner]]></dc:creator><pubDate>Tue, 23 Aug 2016 23:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.7.0 Font Rendering Problem on Tue, 23 Aug 2016 19:41:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mireiner">@<bdi>mireiner</bdi></a><br />
It's not a problem with the rendering, it's a problem with your fonts.<br />
Choose fonts without <a href="https://en.wikipedia.org/wiki/Typographic_ligature" target="_blank" rel="noopener noreferrer nofollow ugc">ligatures</a> if you don't want them rendered.</p>
<p dir="auto">Kind regards.</p>
]]></description><link>https://forum.qt.io/post/343766</link><guid isPermaLink="true">https://forum.qt.io/post/343766</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Tue, 23 Aug 2016 19:41:59 GMT</pubDate></item></channel></rss>