[Interest] QML QtQuick 2 (Qt5) font looks very blurry!

Alan Alpert 416365416c at gmail.com
Thu Dec 20 23:04:00 CET 2012


On Thu, Dec 20, 2012 at 1:40 PM, Mark <markg85 at gmail.com> wrote:
> On Thu, Dec 20, 2012 at 10:29 PM, Thiago Macieira
> <thiago.macieira at intel.com> wrote:
>> On quinta-feira, 20 de dezembro de 2012 22.15.13, Mark wrote:
>>> Hi,
>>>
>>> I'm just running the default examples, but the font looks.. Way too
>>> blurry to me! How is that possible and how can i fix that? Or is it a
>>> bug?
>>>
>>> A screenshot: http://ompldr.org/vZ3JyaQ/qtquick2_blurry_font.png
>>> The example: "QML Examples - Text"
>>>
>>> But i see this in every single place that uses text in QML.
>>
>> In QML in general? Or just with Qt Quick 2? Does the same happen in Qt Quick
>> 1? How about non-QML examples?
>>
>> There are some outstanding issues with the font system on Qt 5. And Qt Quick
>> 2's font system is entirely new.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel Open Source Technology Center
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
> Hi Thiago,
>
> This is with QML in general as provided by Qt5 by default. I haven't
> done any specific "QtQuick 1" test nor is it "easy" to spot which
> include is being used because the examples stuff uses some vague
> define to load the QML file..

It is actually quite easy to see which one is being used. Open the QML
file and check the top, it will either say "import QtQuick 2.0" or
"Import QtQuick 1.0". But that looks like QtQuick 2.0, and it looks
like a bug in the default text rendering. You can report this bug at
https://bugreports.qt-project.org/ .

> Why is it even done this odd? Just an
> readable example would be better imho,

It's because, as QML examples, the C++ entry point is not the main
focus. Often the examples are run by using the qmlscene utility to
launch the QML files instead of the C++ wrapper. The wrapper is there
just so that an easy-to-run binary is produced.

--
Alan Alpert



More information about the Interest mailing list