<?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[QML can&#x27;t see font ascender on Embedded device]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I have some problems to correctly visualize the font Helvetica Neue LT Std Font on an embedded device. The problem is that i 'cant see the part of the characters that are in the ascender area of the font, for example i can't see the accent of the char "À". But also for example the symbol ^ above the char "ê" is cutten. Checking the font with <a href="http://fontdrop.info" target="_blank" rel="noopener noreferrer nofollow ugc">fontdrop.info</a> i can confirm that the part of the characters that are cutten is the part in the ascender area.<img src="https://ddgobkiprc33d.cloudfront.net/e2e43af0-bf35-44a4-8452-c127178a696e.PNG" alt="0_1568723941225_font_ascender.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">If i run the application on PC, it works fine.<br />
My embedded device is based on a iMx6 ULL processor. The screen resolution is 800x480.</p>
<p dir="auto">Below the test code I am using. I'm using Qt5.8.0 both for embedded and PC.</p>
<p dir="auto">main.cpp</p>
<pre><code>{
    QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);

    QtQuick2ApplicationViewer viewer;
    viewer.setSurfaceType(QSurface::OpenGLSurface);
    // Force orientation to see Maliit in landscape orientation
    QFont font("HelveticaNeueLTStd");
    font.setStretch(QFont::Condensed);
    app.setFont(font);
    viewer.setMainQmlFile(QStringLiteral("main.qml"));

    QObject::connect((QObject*)viewer.engine(), SIGNAL(quit()), &amp;app, SLOT(quit()));
    viewer.showExpanded();
    return app.exec();
}

</code></pre>
<p dir="auto">main.qml</p>
<pre><code>import QtQuick 2.6
import QtQuick.Window 2.2

Window {
    visible: true
    width: 800
    height: 480


    Text {
        id: textEdit
        text: qsTr("ÀÀÀ")
        font.pointSize: 24
        verticalAlignment: Text.AlignVCenter
        anchors.top: parent.top
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.topMargin: 20
    }
}

</code></pre>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/106dc233-b298-43d8-8d0c-1ecf458bdc2f.JPG" alt="0_1568724216667_IMG_0089.JPG" class=" img-fluid img-markdown" /><br />
<img src="https://ddgobkiprc33d.cloudfront.net/00ef4a3b-18d9-4e60-8f88-8ae645d5305d.PNG" alt="0_1568724228025_font_pc.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks!<br />
Caro</p>
]]></description><link>https://forum.qt.io/topic/106956/qml-can-t-see-font-ascender-on-embedded-device</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 14:59:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/106956.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Sep 2019 12:45:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QML can&#x27;t see font ascender on Embedded device on Sat, 28 Sep 2019 06:31:47 GMT]]></title><description><![CDATA[<p dir="auto">Glad you found a solution and thanks for sharing !</p>
<p dir="auto">That's a nice trick !</p>
]]></description><link>https://forum.qt.io/post/553349</link><guid isPermaLink="true">https://forum.qt.io/post/553349</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 28 Sep 2019 06:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to QML can&#x27;t see font ascender on Embedded device on Thu, 26 Sep 2019 12:53:15 GMT]]></title><description><![CDATA[<p dir="auto">After other tests i verified that this issue is related to some problem in the rendering of the font.<br />
So in the end i chose a simpler solution: i edited the font moving the "ascender" line upper in a way that now all the symbols are under this line. And now i can see alle the symbols correctly!</p>
]]></description><link>https://forum.qt.io/post/553022</link><guid isPermaLink="true">https://forum.qt.io/post/553022</guid><dc:creator><![CDATA[carols]]></dc:creator><pubDate>Thu, 26 Sep 2019 12:53:15 GMT</pubDate></item><item><title><![CDATA[Reply to QML can&#x27;t see font ascender on Embedded device on Wed, 18 Sep 2019 07:59:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> thanks for the reply! Yes the font is the one that i'm requesting. I made this test: i changed the font with a font editor, i moved the letter "À" in way that the symbol above the A is under the line "ascender". In this way i can see the letter correctly. So it is a confirm that the font that i'm using is the correct one and that the problem is in the visualization of the symbol or of the part of a character that are above the "ascender" line. Please help!</p>
]]></description><link>https://forum.qt.io/post/551664</link><guid isPermaLink="true">https://forum.qt.io/post/551664</guid><dc:creator><![CDATA[carols]]></dc:creator><pubDate>Wed, 18 Sep 2019 07:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to QML can&#x27;t see font ascender on Embedded device on Tue, 17 Sep 2019 18:26:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Did you check that you are actually getting the font you are requesting on your device ?</p>
]]></description><link>https://forum.qt.io/post/551567</link><guid isPermaLink="true">https://forum.qt.io/post/551567</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 17 Sep 2019 18:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to QML can&#x27;t see font ascender on Embedded device on Tue, 17 Sep 2019 16:33:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/carols">@<bdi>carols</bdi></a> said in <a href="/post/551537">QML can't see font ascender on Embedded device</a>:</p>
<blockquote>
<p dir="auto">Do you think it could be related to the configuration of fonts on my embedded platform?</p>
</blockquote>
<p dir="auto">I cannot tell for sure, but I do remember some issues in the forum due to the actual font file in the device not the exact same file in the PC although having the same name...</p>
]]></description><link>https://forum.qt.io/post/551554</link><guid isPermaLink="true">https://forum.qt.io/post/551554</guid><dc:creator><![CDATA[Pablo J. Rogina]]></dc:creator><pubDate>Tue, 17 Sep 2019 16:33:29 GMT</pubDate></item><item><title><![CDATA[Reply to QML can&#x27;t see font ascender on Embedded device on Tue, 17 Sep 2019 15:15:53 GMT]]></title><description><![CDATA[<p dir="auto">@Pablo J. Rogina thanks for your reply! Unfortunately is not easy for me in this moment to try with a no Qt Application. Do you think it could be related to the configuration of fonts on my embedded platform?</p>
]]></description><link>https://forum.qt.io/post/551537</link><guid isPermaLink="true">https://forum.qt.io/post/551537</guid><dc:creator><![CDATA[carols]]></dc:creator><pubDate>Tue, 17 Sep 2019 15:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to QML can&#x27;t see font ascender on Embedded device on Tue, 17 Sep 2019 14:04:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/carols">@<bdi>carols</bdi></a> is it possible that you run any other non-Qt application in that device to see what happens with the font in that case?</p>
]]></description><link>https://forum.qt.io/post/551523</link><guid isPermaLink="true">https://forum.qt.io/post/551523</guid><dc:creator><![CDATA[Pablo J. Rogina]]></dc:creator><pubDate>Tue, 17 Sep 2019 14:04:37 GMT</pubDate></item></channel></rss>