Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Text QML issue



  • Hi All,

    We have implemented a dialog box with option button "CANCEL" and "DOWNLOAD". It's displaying as expected in most of the PC. But in one PC the text gets garbled. We could not find the cause of issue.

    In most PC its displayed as below, (as expected)
    expected.png

    But in one PC its is displayed as below,
    actual.png

    I will show the code snippet ,

    Text {
                    id: mCancelText
                    text: "CANCEL"
                    color: "white"
                    font.family: PR.const_FONT; renderType: Text.QtRendering;
                    font.pixelSize: dpY(12)
                    font.weight: Font.Normal
                    anchors.centerIn: parent
                }
    
    Text {
                    id: mDownloadText
                    text: "DOWNLOAD"
                    color: "white"
                    font.family: PR.const_FONT; renderType: Text.QtRendering;
                    font.pixelSize: dpY(12)
                    font.weight: Font.Normal
                    anchors.centerIn: parent
                }
    

    Can someone please provide suggestion for root cause ?

    Thanks in advance.


  • Moderators

    @Vinoth-Rajendran4
    seems like the font is not available on that one pc, or faulty, ore something  🤷‍♂️

    Have you also the problem, when you leave it as the default font?


Log in to reply