Text.AlignJustify does not properly justify text

Bug #1294940 reported by Nathan Osman
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Invalid
Low
Unassigned
qtdeclarative-opensource-src (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Consider the following QML scene:

    import QtQuick 2.0

    Rectangle {
        width: 200
        height: 200
        color: "white"

        Text {
            anchors.fill: parent
            anchors.margins: 10
            horizontalAlignment: Text.AlignJustify
            text: "aaaaaa aaaaaa aaa aaa" +
                  "aaa aaa aaa aaa aaa " +
                  "aaa aaa aaa aaa aaa"
            wrapMode: Text.WordWrap
        }
    }

Attempting to run the file in qmlscene results in the attached screenshot. Clearly the text is not justified (as one would expect) and is instead left-aligned.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: qmlscene 5.2.1-3ubuntu10
ProcVersionSignature: Ubuntu 3.13.0-17.37-generic 3.13.6
Uname: Linux 3.13.0-17-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Mar 19 19:04:52 2014
InstallationDate: Installed on 2014-03-16 (3 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140314)
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: qtdeclarative-opensource-src
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nathan Osman (george-edison55) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtdeclarative-opensource-src (Ubuntu):
status: New → Confirmed
tags: added: qt5.2
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

It's a cosmetic or usability issue that doesn't limit the functionality of a non-core package.

Changed in qtdeclarative-opensource-src (Ubuntu):
importance: Undecided → Low
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Same result with Qt 5.3.0.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

No change with Qt 5.3.2 either, but seems to be fixed with the upcoming Qt 5.4.0, see attachment. There's however no strict ETA at the moment on when Qt 5.4 would land in Ubuntu. More information about Qt testing at https://wiki.ubuntu.com/Touch/QtTesting.

Changed in hundredpapercuts:
status: Confirmed → Invalid
Changed in qtdeclarative-opensource-src (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.