What is the default line break size?
Posted: Mon Jun 17, 2013 11:47 am
Is there any way to find out the default distance between the lines in a wrapped text?
I'm making the text box, which size depends on the width and the number of lines of the text.
In order to calculate the required height of the box, I use the following formula:
Number_of_lines*Font_size+(Number_of_lines-1)*line_break_size+Margins
I know the number of lines due to Font:getWrap, I certainly know the font size I'm using and I set the 10px margins from each side.
But what is the line break size?
I'm making the text box, which size depends on the width and the number of lines of the text.
In order to calculate the required height of the box, I use the following formula:
Number_of_lines*Font_size+(Number_of_lines-1)*line_break_size+Margins
I know the number of lines due to Font:getWrap, I certainly know the font size I'm using and I set the 10px margins from each side.
But what is the line break size?