Hi,
I've a problem with calculation text width. I tried used this formula :
text_width = sum(Widths[text[i]]) * font_size / 1000
Sometimes I get correct width but sometimes don't. I used characters widths from dictionary Font - /Widths
Has I bad formula or the problem is somewhere else?
thx.
I've a problem with calculation text width. I tried used this formula :
text_width = sum(Widths[text[i]]) * font_size / 1000
Sometimes I get correct width but sometimes don't. I used characters widths from dictionary Font - /Widths
Has I bad formula or the problem is somewhere else?
thx.