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

Qt 5 renders pixel garbage with some PCF fonts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.0.0
    • Fix Version/s: None
    • Component/s: GUI: Font handling
    • Labels:
      None
    • Environment:
      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

              • Assignee:
                esabraha Eskil Abrahamsen Blomfeldt
                Reporter:
                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