Try scaling only in one direction (X or Y) and you will see that it doesn't
work. However it does with embedded fonts. I think scaling in both
directions with the same value makes flex use another font size, but "real"
scaling only can be applied to embedded fonts. Anyway, this limitation will
be removed in Flex 4 (Gumbo) and we will be able to do what we want with
text without the need to embed any fonts :)

Bye!


On Wed, Oct 22, 2008 at 1:18 AM, Amy <[EMAIL PROTECTED]> wrote:

>   --- In [email protected] <flexcoders%40yahoogroups.com>,
> "Haykel BEN JEMIA" <[EMAIL PROTECTED]>
> wrote:
> >
> > It's not working for me by setting the blendMode to layer! It only
> works
> > with the embedded fonts, as expected. Here is my test application
> and as you
> > can see, scaling is only working on the lines using the embedded
> font. In
> > the other cases, the Label control itself is scaled and is
> truncating the
> > text but not the text itself.
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="vertical"
> > horizontalAlign="left">
> > <mx:Style>
> > @font-face {
> > src: local("Arial");
> > fontFamily: myFontFamily;
> > advancedAntiAliasing: true;
> > }
> > @font-face {
> > src: local("Arial");
> > fontFamily: myFontFamily;
> > fontWeight: bold;
> > advancedAntiAliasing: true;
> > }
> >
> > @font-face {
> > src: local("Arial");
> > fontFamily: myFontFamily;
> > fontWeight: bold;
> > fontStyle: italic;
> > advancedAntiAliasing: true;
> > }
> > </mx:Style>
> >
> > <mx:Label text="Sample Text" fontSize="32" />
> > <mx:Label text="Sample Text" fontSize="32" scaleX="0.7"/>
> > <mx:Label text="Sample Text" fontSize="32" scaleX="0.7"
> > blendMode="layer" />
> > <mx:Label text="Sample Text" fontSize="32"
> fontFamily="myFontFamily"
> > scaleX="0.7"/>
> > <mx:Label text="Sample Text" fontSize="32"
> fontFamily="myFontFamily"
> > fontWeight="bold" fontStyle="italic"/>
> > <mx:Label text="Sample Text" fontSize="32"
> fontFamily="myFontFamily"
> > fontWeight="bold" fontStyle="italic" scaleX="0.7"/>
> > </mx:Application>
>
> I tried this:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="vertical">
> <mx:Label text="Test label" blendMode="layer" scaleX="2"
> scaleY="2" />
> <mx:Label text="Test label 2" scaleX="2" scaleY="2"/>
> <mx:Label text="Test label 3"/>
> </mx:Application>
>
> And both the first and second labels scaled properly (regardless of
> blend mode), so it's difficult for me to guess what the issue is on
> your file.
>
> HTH;
>
> Amy
>
>  
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com

Reply via email to