Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator editor font size
Forum Updated to NodeBB v4.3 + New Features

Qt Creator editor font size

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 3.6k 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.
  • rincewindR Offline
    rincewindR Offline
    rincewind
    wrote on last edited by
    #1

    This is maybe a frivolous issue, but I have been wondering about this. The font size I like when coding usually comes to 13 in the IDE's and editors I use. However, Qt Creator only allows the font size to be set to 12, 14, 16, 18, ... Even if I set the font size to 13 in the config file, 14 is selected. I'm just curious about the reason for this.

    1 Reply Last reply
    0
    • rincewindR Offline
      rincewindR Offline
      rincewind
      wrote on last edited by
      #2

      What I've found so far...

      This is a Qt issue. The following code shows the available point sizes on my Ubuntu PC. I'm not sure about other distro's. Qt Creator on Windows also lacks certain point sizes, apparently this is not the case on OS X.

      @
      QFontDatabase database;

      QString family = "Courier New";
      QString output = tr("[%1]: ").arg(family);
      foreach (const QString &style, database.styles(family)) {
          output.append(tr(" Style-%1: ").arg(style));
          foreach (int points, database.pointSizes(family, style)) {
              output.append(tr("(%1) ").arg(points));
          }
      }
      
      qDebug() << output;
      

      @

      @
      The point sizes listed are:
      "[Courier New]: Style-Bold: (6) (7) (8) (9) (10) (11) (12) (14) (16) (18) (20) (22) (24) (26) (28) (36) (48) (72) Style-Regular: (6) (7) (8) (9) (10) (11) (12) (14) (16) (18) (20) (22) (24) (26) (28) (36) (48) (72) Style-Bold Italic: (6) (7) (8) (9) (10) (11) (12) (14) (16) (18) (20) (22) (24) (26) (28) (36) (48) (72) Style-Italic: (6) (7) (8) (9) (10) (11) (12) (14) (16) (18) (20) (22) (24) (26) (28) (36) (48) (72) "
      @

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goblincoding
        wrote on last edited by
        #3

        Not at all related to your query, but "Rincewind" as in "Didn't look back because there was nothing behind him that could make him run any faster than he already was" (horrible Pratchett paraphrase) Rincewind?

        That's awesome :D

        http://www.goblincoding.com

        1 Reply Last reply
        0
        • rincewindR Offline
          rincewindR Offline
          rincewind
          wrote on last edited by
          #4

          What can I say, I'm a fan.

          "Rincewind tried to force the memory out of his mind, but it was rather enjoying itself there, terrorizing the other occupants and kicking over the furniture.”

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goblincoding
            wrote on last edited by
            #5

            HAHAHAHAHA!!! :D

            Hopefully someone actually useful will come along soon to help with your question ;)

            http://www.goblincoding.com

            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