Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1301

Imagine theme font problem in Windows when using qrc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 5.14.1
    • Fix Version/s: None
    • Component/s: PySide, Tooling
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      I made a simple package to show the problem.

      https://github.com/jmitrevs/bugreport

      It is a simple QtQuick application with python that just opens a window that has a File menu selection, with just the quit option. I also added a simple configuration, qtquickcontrols2.conf, which contains:

      [Controls]
       Style=Imagine
      
      [Imagine\Palette]
       ButtonText=Black
      

      But this causes "File" and "Quit" to be replaced by "...". I am attaching a screenshot. This works fine on a Mac and Linux.

      The steps to run are:

      1. pyside2-rcc.exe -o style_rc.py style.qrc
      2. python main.py

      There is an error message:

      DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="MS Shell Dlg 2", pointsize=8.5, pixelsize=11, styleHint=5, weight=50, stretch=100, hintingPreference=0)
         LOGFONT("Open Sans", lfWidth=0, lfHeight=-11) dpi=96
      DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="MS Shell Dlg 2", pointsize=8.5, pixelsize=11, styleHint=5, weight=50, stretch=100, hintingPreference=0) 
        LOGFONT("Open Sans", lfWidth=0, lfHeight=-11) dpi=96
      

       

        Attachments

        1. Windows screenshot.png
          24 kB
          Jovan Mitrevski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            jmitrevs Jovan Mitrevski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes