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

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.14.1
    • PySide, Tooling
    • None
    • 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

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            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