views:

93

answers:

2

Hi,

When I set leading to 0 with Verdana (and others to) for a Flex TextArea I get strange results:

fontsize -> space between baselines
8 -> 10 (125%)
10 -> 12 (120%)
12 -> 14 (117%)
14 -> 17 (121%)
16 -> 18 (113%)
18 -> 22 (122%)
20 -> 25 (125%)
25 -> 31 (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?

A: 

Did you try line-height?

Robusto
A: 

I migrated the project to Flex 4.0 (should have said that I was using 3.5) and use lineHeight instead, where I get the expected results. Thanks for your replies!

Andreas