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. OpenType font looks shaggy in Windows.
Forum Updated to NodeBB v4.3 + New Features

OpenType font looks shaggy in Windows.

Scheduled Pinned Locked Moved General and Desktop
windows 8.1qt5.4.2
1 Posts 1 Posters 938 Views 2 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
    shinichy
    wrote on last edited by
    #1

    I'd like to use Adobe Source Code Pro OpenType font (otf) in QPlainTextEdit, but it looks shaggy when I use it in Qt 5.4.2, Windows 8.1.
    TrueType font looks good.
    Do I miss something or is this a bug of QPlainTextEdit?

    screenshot of otf
    screenshot of ttf
    https://github.com/adobe-fonts/source-code-pro

    #include <QApplication>
    #include <QPlainTextEdit>
    
    int main(int argc, char *argv[])
    {
      QApplication a(argc, argv);
      QPlainTextEdit editWidget;
      editWidget.setFont(QFont("Source Code Pro"));
      editWidget.show();
    
      return a.exec();
    }
    
    

    Thanks in advance.

    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