I think I may have found a small bug.
When displaying Arabic text using options array, and when setting align property to “right”, the first 2 letters disappear
if you set it to left or center the letters appear normally
just copy paste to main.lua, run and build html5 and run in browser
webtest2.zip (65.8 KB)
local optionsA = {
text="",
width = 400,
fontSize = 38,
font = "Tahoma",
align = "right"
}
local optionsE = {
text="",
width = 400,
fontSize = 38,
font = "Tahoma",
align = "left"
}
local slideT1 = display.newText(optionsA )
slideT1.text="مرحبا انا اسمي طارق"
slideT1.anchorY=0
slideT1.x=display.contentCenterX
slideT1.y=display.contentCenterY-50
slideT1:setFillColor(1)
local slideT2 = display.newText(optionsE )
slideT2.text="مرحبا انا اسمي طارق"
slideT2.anchorY=0
slideT2.x=display.contentCenterX
slideT2.y=display.contentCenterY+50
slideT2:setFillColor(1)