ArminKH
Well-Known Member
hi all
i have 2 question plz help me
question 1:
how i can return the lenght of characters in a line?
my string is multi line but i want know how many char is in any line
for example in this text:
Line 1-"This is test"
Line 2-"This is"
in line 1 i have 12 character and in line 2 i have 7 character
is there any way to calculate and return this numbers?
question 2:
i want return the width of any line of a multiline
i know this possible with canvas.measurestringwidth
but when we have for example 3 word in 3 line(with CRLF)
how we can know what is the width of line 2?
and may be need to understand how many line we have
plz help
tnx
i have 2 question plz help me
question 1:
how i can return the lenght of characters in a line?
my string is multi line but i want know how many char is in any line
for example in this text:
Line 1-"This is test"
Line 2-"This is"
in line 1 i have 12 character and in line 2 i have 7 character
is there any way to calculate and return this numbers?
question 2:
i want return the width of any line of a multiline
i know this possible with canvas.measurestringwidth
but when we have for example 3 word in 3 line(with CRLF)
how we can know what is the width of line 2?
and may be need to understand how many line we have
plz help
tnx