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

font issues

    XMLWordPrintable

Details

    Description

      Using a uniform fonts on Unix (SunOS/Linux) systems.
      Want our applications to use the same font on every machine. In our pre Qt (X11)
      implementation we used a hardcoded X font
      (misc-fixed-bold-r-normal-13-120-75-75-c-80-iso8859-1). This font worked
      and looked the same on every system. We want to use this same font again in
      our Qt applications, so we did the following:

      QFont font;
      font.setRawName("misc-fixed-bold-r-normal-13-120-75-75-c-80-iso8859-1");
      qtapp->setFont(font);

      This works on most of the systems. However, on some older Linux systems
      (CentOS release 3.8), the font letters appear as empty characters (i.e. no
      texts are displayed at all). When checking the availability of this font
      (e.g. using xfontsel), the font is available on the system.

      The attached example program, already reproduces this problem. When typing in
      the appearing QTextEdit, on the problem machines, only spaces appear when
      typing. We tried calling setRawMode(true). Then a font is displayed, but it's
      not the correct font (not bold).

      When font.exactMatch() is called, it returns false, but it also returns false
      on the problem machines, so there's no way to determine it went wrong.

      Attachments

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

        Activity

          People

            dakovaci Daniel Kovacic
            dakovaci Daniel Kovacic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes