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

fonts created in makeqpf larger that 171 in size display distorted or inaccurate charactors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.8.x
    • GUI: Font handling
    • None
    • Embedded Linux

    Description

      1. qpf2 Fonts is created from size to 12 to 179 using the following command

      makeqpf /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 174 -v | tee makeqpf174

      2. They are used in a GUI as follows

          qApp->setStyleSheet("QPushButton { font-family: 'DejaVu Sans' ;font-size : 173px ;}");
      
          QWidget widget;
          QVBoxLayout layout;
          widget.setLayout(&layout);
      
          QPushButton button1;
          button1.setMinimumSize(600,300);
      
          button1.setText("012345678910");
          button1.show();
          QPushButton button2;
          button2.setText("Test");
      
          QLabel label;
          label.setText("Test");
      
          layout.addWidget(&label);
          layout.addWidget(&button1);
          layout.addWidget(&button2);
          widget.show();
          widget.resize(1050,850);
      

      3If this application is run on the qvfb tool the result is distorted as the images attached.

      This is also tested on the device
      Setting : pandaboard, angstrom Linux, Qt 4.8.3/2

      Attachments

        1. 171.png
          171.png
          63 kB
        2. 173.png
          173.png
          43 kB
        3. 179.png
          179.png
          36 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            thwijeth Tharanga Wijethilake (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes