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

QTextLine::glyphRuns crashs on windows

    XMLWordPrintable

Details

    • 33c59be551014c656370e0459c6cb5094ae68f3f

    Description

      I've got the following code (m_layout is a member QTextLayout):

          m_layout.setText(my_string);
          m_layout.beginLayout();
          auto line = m_layout.createLine();
          m_layout.endLayout();
          m_layout.clearLayout();
      
          QGlyphRun gr;
          auto glr = line.glyphRuns();
      

      The call to glyphRuns crashes with a stack trace that goes into qwindows.dll:     

          qwindowsd.dll!QWindowsFontEngine::getGlyphBearings(unsigned int glyph, double * leftBearing, double * rightBearing)  @ line 632

       

      The same code works on macOS and Linux with both Qt 5.8 and 5.9

      Attachments

        For Gerrit Dashboard: QTBUG-60804
        # Subject Branch Project Status CR V

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jcelerier Jean-Michaël Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes