TExt Rendering : Spaces appears betxeen characters according to the scale

  • Hello, I am developping an application which is resizable.
    and according to the scale, the text "add" some space characters between letters. One can see a space between 'T' and 'S' on the second examples snapshot below. The scale factor between the 2 snapshots is 1.1.

    !http://imageshack.us/a/img46/7246/5dba.jpg(Scale1)! !http://imageshack.us/a/img708/6875/j4q3.jpg(Scale2)!

    Here is the king of code which is used to implement the text:
    @Text {
    id: iTxtLow
    x: 0
    y: 85
    width: parent.width
    height: 19
    font.bold: true
    font.family: "Arial"
    horizontalAlignment: Text.AlignHCenter
    text: "LABEL2 LABEL2 LABEL2"
    font.pointSize: 15

    The scale modifiation is done as below:
    @scale: dpiRatio@

    It looks like is I use the font "Arial Unicode MS" instead of "Arial" it looks better. Are there some experience about this king of rendering issues?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.