Jump to content

dxGetTextWidth problem


Master_MTA

Recommended Posts

hello their

i have a little problem when i tried to get the width of the arabic text in pixels using dxGetTextWidth function

so i tried to solve it but still doesn't work perfect 

function createString(lenth)
if lenth~=0 then
local st=''
for k=1,lenth do
st=st..'a'
end
return st
else
return 'a'
end
end

dxGetTextWidth (createString(utf8.len( v.text )),1.15,"default-bold")

 

Edited by Master_MTA
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...