Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. get minimum, recommended pointsizes of a font
Forum Updated to NodeBB v4.3 + New Features

get minimum, recommended pointsizes of a font

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 150 Views
  • 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.
  • W Offline
    W Offline
    wakiki
    wrote on last edited by
    #1

    I try to scale a qfont f.e. "Arial", "Bold" down, but i get ugly results with PointSizeF lower than 5.
    The spaces between letters starting to get irregular.

    I couldnt find something like minimumSize() so i tried this:

    QFontDatabase db;
    QList<int> standardSizes = db.standardSizes();
    QList<int> smoothSizes = db.smoothSizes(_font.family(), _font.styleName());
    QList<int> pointSizes = db.pointSizes(_font.family(), _font.styleName());
    

    all lists have the same content from 5 to 72, so i guess the best way is to stick to these sizes, right?

    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