Hi,

> A font weight of 600 will fail in Flash.

It compiles with no warnings and displays the text correctly. There is no run 
time error but if you mean by “fail” it doesn't set the text to font weight to 
600 then that’s correct. That is expected as 600 is not a supported value for 
font weight in AS / flash.

However without the fix we have the same issues on JS in that it will ignore 
the font weight being set to 600. This is unexpended behaviour in that it’s 
ignoring a valid value. Again it will compile and give no warnings or run time 
errors.

Here’s the code for a full application if you want to try it out.

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                xmlns:js="library://ns.apache.org/flexjs/basic">

    <js:valuesImpl>
        <js:SimpleCSSValuesImpl/>
    </js:valuesImpl>

    <js:initialView>
        <js:View percentWidth="100" percentHeight="100">
            <js:VContainer>
                <js:Label text="The quick brown fox jumped over the lazy dog. 
(200)">
                    <js:style>
                        <js:SimpleCSSStyles fontWeight="200" />
                    </js:style>
                </js:Label>
                <js:Label text="The quick brown fox jumped over the lazy dog. 
(600)">
                    <js:style>
                        <js:SimpleCSSStyles fontWeight="600" />
                    </js:style>
                </js:Label>
            </js:VContainer>
        </js:View>
    </js:initialView>

</js:Application>

With my fix it works as expected in JS i.e. the two lines are different sizes.

Thanks,
Justin

Reply via email to