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

Text element skips new line characters with font.capitalization set to Font.AllUppercase

    XMLWordPrintable

Details

    Description

      Run the following code in Qml Viewer

      import QtQuick 1.0
      
      Rectangle {
          Column {
              anchors.centerIn: parent
              spacing: 10
              Text {
                  text: "Two\nlines"
              }
              Text {
                  text: "two\nlines"
                  font.capitalization: Font.AllUppercase
              }
          }
      }
      

      First text element shows two lines, second one only one line. It looks like the font capitalization processing skips the "\n" new line character.

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            jpetrell Joona Petrell
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes