简体   繁体   中英

leading for a Flex mx TextArea

When I set leading to 0 for a Flex mx TextArea I get strange results: fontsize -> space between baselines 20 - 25 is 125% 25 - 31 is 124% shouldn't all of these be the same (should only be 100%)? Or least follow a pattern, because I can't se any. When i set leading to 0, the space between my baselines should be the same as the font size/height. This is not the case here. How do I know how to get the space between the baseline to be equal to the height of the font?

var ttLnHt:Number = _textArea.myUITextField.getLineMetrics(0).height; // guessPerc is variable for calculation = (100/(font size))*(total height of line);

var guessPerc:Number = (100/(textSize))*ttLnHt;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM