Skip to content

Commit a2a28a7

Browse files
committed
Fix #7077. RTL and LTR text shows correctly.
1 parent 86793ce commit a2a28a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gameobjects/text/Text.js

+2
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ var Text = new Class({
322322
{
323323
if (!this.style.rtl)
324324
{
325+
this.canvas.dir = 'ltr';
326+
this.context.direction = 'ltr';
325327
return;
326328
}
327329

0 commit comments

Comments
 (0)