I would like to turn-off font antialiasing for a Text element in QtQuick 2.
I tried to set both antialiasing: false
and renderType: Text.NativeRendering
but nothing changes... how can I do that? Is it possible?
I would like to turn-off font antialiasing for a Text element in QtQuick 2.
I tried to set both antialiasing: false
and renderType: Text.NativeRendering
but nothing changes... how can I do that? Is it possible?
renderType: Text.NativeRendering
should be the best you can get. Now check your system's font rendering settings.
antialiasing
of Item
does not seem to affect text at all:
Primarily used in Rectangle and image based elements to decide if the item should use antialiasing or not. Items with antialiasing enabled require more memory and are potentially slower to render.
http://qt-project.org/doc/qt-5/qml-qtquick-item.html#antialiasing-prop
If you try to remove the coloured noise generated and have sharper text you can add a transparent outline to a text. That does the job.
Text {
text: "hello"
style: Text.Outline
styleColor: "transparent"
}