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. Font Scaling issue with Quicksand
Forum Updated to NodeBB v4.3 + New Features

Font Scaling issue with Quicksand

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.4k 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.
  • K Offline
    K Offline
    kwisatz
    wrote on last edited by
    #1

    I'm using the "Quicksand Font":http://www.google.com/fonts/specimen/Quicksand for one of my designs and I'm observing certain defects at large font sizes, particularly for "0" and "8" characters. The curves start to flatten out at any font size greater than 65 points/pixels. I haven't tested for every character but my primary concern is for numbers. I observe the same effect with both Qt Quick 1.1 and 2.0.

    @Rectangle {
    width: 360
    height: 360

    Text {
        anchors.centerIn: parent
        text: "08"
        font {pixelSize: 165; family: "Quicksand";}
    }
    

    }
    @

    [Expected]
    !http://i.imgur.com/FFZwVN3.png(Expected Output )!

    [QML Result]
    !http://i.imgur.com/ze3cu96.png(QML Result)!

    Expected output was generated using "Typecast":http://typecast.com/preview/google/Quicksand

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      It might be an artifact of distance field rendering relying on fixed resolution pixmaps. You can try setting renderType: Text.NativeRendering in Qt Quick 2 and see if that helps depending on what the use case is.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kwisatz
        wrote on last edited by
        #3

        Just tried this, it didn't change anything. My target is Embedded Linux at Qt 4.8.3. But I've also tried this on my desktop machine (Ubuntu 12.04 with Qt 5.1.1) too and there is no change. Do you think Font Formats might have something to do with this, I'm using TrueType in both cases. Appreciate the help.
        [quote author="Jens" date="1385392028"]It might be an artifact of distance field rendering relying on fixed resolution pixmaps. You can try setting renderType: Text.NativeRendering in Qt Quick 2 and see if that helps depending on what the use case is.[/quote]

        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