I think it is the Ubuntu font that causes the problem.

This works fine:
import QtQuick 2.0

Text {
    font.family: "Helvetica"
    width: 200
    height: 200
    maximumLineCount: 2
    text: "foo\nfoo"
}

This gives the problem:

import QtQuick 2.0
Text {
    font.family: "Ubuntu"
    width: 200
    height: 200
    maximumLineCount: 2
    text: "foo\nfoo"
}


Without specifying font.family, the problem is there because Ubuntu font is 
chosen by default (I don't know why, probably a system setting). When I 
uninstalled the  ttf-ubuntu-font-family package, the app ran without the 
problem when not specifying font.family.

** Changed in: ubuntu-ui-toolkit
     Assignee: Zsombor Egri (zsombi) => Tim Peeters (tpeeters)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1285184

Title:
  Squares in text where carriage returns should be

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1285184/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to