Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28739

Qt 5 renders pixel garbage with some PCF fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.0.0
    • GUI: Font handling
    • None
    • Qt 5.0.0
      Gentoo Linux AMD64
      X.Org 7.4 (xorg-server 1.13.0)
      Fontconfig 2.9.0
      Freetype 2.4.10
      libxcb 1.9
      Linux kernel 3.7.1

    Description

      Some PCF fonts are rendered with pixel garbage around them by Qt 5. Qt 4 does not show this problem.

      Here's a simple test program that should demonstrate the bug:

      #include <QApplication>
      #include <QTextEdit>
      
      int main(int argc, char* argv[])
      {
          QApplication a(argc, argv);
          QTextEdit tedit("The quick brown fox jumps over the lazy dog");
          tedit.setFont(QFont("Fixed [Sony]", 20));
          tedit.show();
          return a.exec();
      }
      

      The "font-sony-misc" font is provided by X.Org and should be available by default in most Linux distros. Some other PCF fonts also trigger the problem, like "Clean" and "Console".

      I'm attaching a screenshot that shows the problem.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              realnc Nikos Chantziaras
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes