<?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[Is there a way of using QPF2 font format on Desktop application?]]></title><description><![CDATA[<p dir="auto">I want to use a font, but i don't know what font it is.The only thing I have is a qpf2 file.<br />
I have try QFontDatabase::addApplicationFont() which return -1.<br />
I also set QT_QPA_FONTDIR， but QFontDatabase.families() still did not include it.<br />
Any suggestions are appreciated<br />
<a href="https://1drv.ms/u/s!Arw0_ahdOUjPgsQLil_PkZRGmrJmLA?e=6gLRO7" target="_blank" rel="noopener noreferrer nofollow ugc">qpf2 file</a></p>
]]></description><link>https://forum.qt.io/topic/145832/is-there-a-way-of-using-qpf2-font-format-on-desktop-application</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 07:25:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145832.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Jun 2023 04:37:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is there a way of using QPF2 font format on Desktop application? on Sun, 18 Jun 2023 20:07:27 GMT]]></title><description><![CDATA[<p dir="auto">Since it's explicitly stated as a Qt for Embedded Linux feature, my educated guess is that the support for it will only be built if you do such a Qt build.</p>
]]></description><link>https://forum.qt.io/post/761824</link><guid isPermaLink="true">https://forum.qt.io/post/761824</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 18 Jun 2023 20:07:27 GMT</pubDate></item><item><title><![CDATA[Reply to Is there a way of using QPF2 font format on Desktop application? on Sun, 18 Jun 2023 03:24:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Thank you for your reply.<br />
I have tried 2 versions, same result.<br />
win11 + QT4.8.7<br />
ubuntu20.04 LTS + QT5.12.12</p>
<pre><code>    int fontId=QFontDatabase::addApplicationFont("/home/nut/Desktop/Vera.ttf");
    qDebug() &lt;&lt; fontId; //output 0
</code></pre>
<pre><code>    int fontId=QFontDatabase::addApplicationFont("/home/nut/Desktop/ds.qpf2");
    qDebug() &lt;&lt; fontId; //output -1
</code></pre>
<p dir="auto">It can load ttf font, but can't load qpf2 font.<br />
On win11, I place qpf2 font into D:\Qt_\4.8.7\lib\fonts, don't work.<br />
On Ubuntu, $QTDIR/lib/fonts don't exist, so I create it, dont' work too.</p>
<p dir="auto">I know QPF2 is designed for Qt for Embedded Linux.<br />
Since Embedded Linux can load qpf2, I think a more complete linux , ubuntu should also work.</p>
]]></description><link>https://forum.qt.io/post/761782</link><guid isPermaLink="true">https://forum.qt.io/post/761782</guid><dc:creator><![CDATA[kimono]]></dc:creator><pubDate>Sun, 18 Jun 2023 03:24:13 GMT</pubDate></item><item><title><![CDATA[Reply to Is there a way of using QPF2 font format on Desktop application? on Sat, 17 Jun 2023 19:18:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Which version of Qt are you using ?<br />
On which platform ?</p>
<p dir="auto">More information on the format can be found <a href="https://doc.qt.io/qt-6/qt-embedded-fonts.html" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
]]></description><link>https://forum.qt.io/post/761773</link><guid isPermaLink="true">https://forum.qt.io/post/761773</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 17 Jun 2023 19:18:33 GMT</pubDate></item></channel></rss>