How To Get Rid Of Jagged Text in qml

Viewed 49

I write code for the "Persian" and "Done" text following but the "Done" text is jagged.I have used pixelsize for font drawing. enter image description here

In the below example the font is looking fine :

Rectangle
{
            width: 371
            height: 48
            x:125
            y:151
            color: _noColor
            Image {
                id: imgPersianLanguage
                source: "images/SoftkeyEnglishPersianHighlighted.png"
                anchors.fill: parent
            }
            Text {
                id: txtPersianLanguage
                anchors.centerIn: parent
                text: qsTr("Persian")
                font.pixelSize: 24
                color: _highlightColor
                font.family:fontCrouse.name
            }
}

But in this example the "Done" word is jagged :

Rectangle

{
             
            width: 151
            height: 44
            x:236
            y:218
            color: _noColor
            Image {
                id: imgSoftkeyDone
                source: "images/SoftkeyLanguageAgreeDone.png"
                anchors.fill: parent
            }
            Text {
                id:txtDone
                text: qsTr("Done")
                anchors.centerIn: parent
                font.pixelSize: 24
                color: _defaultColor
                font.family:fontCrouse.name
            }
}

To clarify please notice this image. enter image description here

enter image description here

0 Answers
Related