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.
I think it is the Ubuntu font that causes the problem.
This works fine:
import QtQuick 2.0
Text { Count: 2
font.family: "Helvetica"
width: 200
height: 200
maximumLine
text: "foo\nfoo"
}
This gives the problem:
import QtQuick 2.0 Count: 2
Text {
font.family: "Ubuntu"
width: 200
height: 200
maximumLine
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.