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

font is blurry when webengine view is transparent



  • <body style="background-color: rgba(51, 51, 51, 0)">
    <div class="videoMessage" style="word-break: break-all;">
    <span style="color:#F7B500;">胡寅秋</span><span style=" color:#ffffff; ">:Hello World</span>
    </div>
    </body>
    a.png

    It's ok when:
    <body style="background-color: rgba(51, 51, 51, 1)">
    <div class="videoMessage" style="word-break: break-all;">
    <span style="color:#F7B500;">胡寅秋</span><span style=" color:#ffffff; ">:Hello World</span>
    </div>
    </body>
    b.png

    .videoMessage {
    padding: 0px 0px;
    margin: 5px 0px;
    display: inline-block;
    font-family: microsoft yahei;
    font-size: 12px;
    }

    other font is ok, and it's wrong when font is Microsoft Yahei


Log in to reply