flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: git commit: [flex-sdk] [refs/heads/develop] - Fix for https://issues.apache.org/jira/browse/FLEX-34909 (Embedded fonts not working on charts)
Date Thu, 10 Sep 2015 15:00:58 GMT


On 9/9/15, 10:24 PM, "omuppi1@gmail.com on behalf of OmPrakash Muppirala"
<omuppi1@gmail.com on behalf of bigosmallm@gmail.com> wrote:

>On Wed, Sep 9, 2015 at 10:03 PM, Alex Harui <aharui@adobe.com> wrote:
>
>>
>>
>> On 9/9/15, 9:06 PM, "OmPrakash Muppirala" <omuppi1@gmail.com> wrote:
>>
>> >Haha, okay.  I had limited time to spend on this (work deadlines)  And
>>I
>> >don't know the inner workings of the Charts very well.  If you can
>>guide
>> >me
>> >through it, I can take a shot at fixing it properly.
>>
>> Well, the comments indicate that it looked like there were places where
>>it
>> was using a TextField to measure but a Spark Label to render.
>
>
>The comments in the code or in the JIRA ticket?

In the JIRA ticket.

>
>
>> It should
>> use a Spark Label to measure if Spark Label is used to render, and MX
>> Labels to measure if MX Labels are used to render.
>>
>>
>If measurement is the only thing that was off, why would the spark labels
>not show up at all?  Is it setting width/height to undefined or something?

Well, it could be more complex than just the measurement, but there is
some logic to reduce the number of labels on an axis so they don’t
overlap.  If you measure 0 width (which is what happens in some cases)
things could go wonky, so I’d fix the measurement first and then see if
there are still issues.  The workaround, which was to use
TextField/mx.controls.Label) for both measurement and display seems to
work fine so I’m assuming that matching up correct measurements to the
right Label will solve the problem, although another comment in the JIRA
says that it isn’t easy to override which labelClass you are using because
some classes cache the labelClass too early.

Thanks for digging into it.
-Alex


Mime
View raw message