Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
Description
With the following qml:
Text {
text: "مصر yooo مصر yooo."
}
and cpp:
app.setLayoutDirection(Qt::LeftToRight);
The rendered output looks like this:
According to the documentation, the QGuiApplication.layoutDirection can be used to explicitly set base direction for the text (a.k.a. embedding level in BiDi spec). The rendered output acts as if Qt::LayoutDirectionAuto was set. With Qt::LeftToRight, the expected string should be rendered in reverse order and the dot should be on the right side.
From https://doc.qt.io/qt-6/qt.html#LayoutDirection-enum:
When LayoutDirectionAuto is used in conjunction with text layouting, it will imply that the text directionality is determined from the content of the string to be layouted.
Attachments
Issue Links
- relates to
-
QTBUG-95016 Text & TextEdit do not respect BiDi specification for multi-paragraph texts
-
- Open
-