1

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?

Morix Dev
  • 2,700
  • 1
  • 28
  • 49

2 Answers2

1

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

Simon Warta
  • 10,850
  • 5
  • 40
  • 78
1

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"
}
Nathan
  • 53
  • 6