Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TExt Rendering : Spaces appears betxeen characters according to the scale
Forum Updated to NodeBB v4.3 + New Features

TExt Rendering : Spaces appears betxeen characters according to the scale

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 649 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sil20
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved