Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-22 Thread Haykel BEN JEMIA
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 flexcoders@yahoogroups.com 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


[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-22 Thread Amy
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] 
wrote:

 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 :)

It's interesting that blendMode works for alpha and rotation, but not 
for this type of scaling.  I wonder what the difference is.



[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-21 Thread Amy
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA haykelbj@ 
 wrote:
 
  Could you post a working example? This would really interest me!
 
 I'll try to make time tonight :-).

I updated my GroupingFunction example to show this
http://flexdiary.blogspot.com/2008/09/groupingcollection-example-
featuring.html

HTH;

Amy



Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-21 Thread Haykel BEN JEMIA
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



On Tue, Oct 21, 2008 at 4:20 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Haykel BEN JEMIA haykelbj@
  wrote:
  
   Could you post a working example? This would really interest me!
 
  I'll try to make time tonight :-).

 I updated my GroupingFunction example to show this
 http://flexdiary.blogspot.com/2008/09/groupingcollection-example-
 featuring.html

 HTH;

 Amy

  




-- 
Haykel Ben Jemia

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


[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-21 Thread Amy
--- In flexcoders@yahoogroups.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



Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
You have to embed the font with all typeface styles you need. If for example
you need the plain, bold and bold-italic typefaces, then you have to embed
the font three times with the different typeface properties:
@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;
}



On Mon, Oct 20, 2008 at 7:50 AM, akila_ksri [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 [EMAIL PROTECTED] wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 akila_ksri akila_ksri@ wrote:
  
   Hi,
  
   I need to apply horizontal scaling for a text with 'Arial' font.
   lbl.scaleX = 0.70 simply does not work . I can only see that there is
  a
   change in the width of the label.
  
   Is there anything i am missing out to scale the text?? Is scaling not
   applicable for system fonts? ( I tried the same with font 'Verdana',
   but again, no luck!)
  
   Any help would be greatly appreciated.
 
  Try one of the following:
 
  1) Set the blendMode to layer
  2) Set the container's cacheAsBitmap to true
  3) Embed the font
 
  HTH;
 
  Amy
 
 Hi Amy,

 Thanks for your response. I tried what you suggested, embedding the
 font and then applying scaleX to the text.
 This works fine if the font is just 'Arial'. It does not work if i
 make the text bold/italic. It is necessary for the font to be bold and
 in italics. I cant get it to work:(

 akila

  




-- 
Haykel Ben Jemia

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


[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread akila_ksri
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED]
wrote:

 You have to embed the font with all typeface styles you need. If for
example
 you need the plain, bold and bold-italic typefaces, then you have to
embed
 the font three times with the different typeface properties:
 @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;
 }
 
 
 
 On Mon, Oct 20, 2008 at 7:50 AM, akila_ksri [EMAIL PROTECTED] wrote:
 
--- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.com, Amy
  amyblankenship@ wrote:
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  akila_ksri akila_ksri@ wrote:
   
Hi,
   
I need to apply horizontal scaling for a text with 'Arial' font.
lbl.scaleX = 0.70 simply does not work . I can only see that
there is
   a
change in the width of the label.
   
Is there anything i am missing out to scale the text?? Is
scaling not
applicable for system fonts? ( I tried the same with font
'Verdana',
but again, no luck!)
   
Any help would be greatly appreciated.
  
   Try one of the following:
  
   1) Set the blendMode to layer
   2) Set the container's cacheAsBitmap to true
   3) Embed the font
  
   HTH;
  
   Amy
  
  Hi Amy,
 
  Thanks for your response. I tried what you suggested, embedding the
  font and then applying scaleX to the text.
  This works fine if the font is just 'Arial'. It does not work if i
  make the text bold/italic. It is necessary for the font to be bold and
  in italics. I cant get it to work:(
 
  akila
 
   
 
 
 
 
 -- 
 Haykel Ben Jemia
 
 Allmas
 Web  RIA Development
 http://www.allmas-tn.com

Hi Haykel,

I tried this one too, it still doesnt work..
It looks like i just cant scale text which is bold and italisized!




Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
It works for me. Here an example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical
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 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



On Mon, Oct 20, 2008 at 10:39 AM, akila_ksri [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Haykel BEN JEMIA [EMAIL PROTECTED]
 wrote:

 
  You have to embed the font with all typeface styles you need. If for
 example
  you need the plain, bold and bold-italic typefaces, then you have to
 embed
  the font three times with the different typeface properties:
  @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;
  }
 
 
 
  On Mon, Oct 20, 2008 at 7:50 AM, akila_ksri [EMAIL PROTECTED] wrote:
 
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.com, Amy
   amyblankenship@ wrote:
   
--- In flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,

   akila_ksri akila_ksri@ wrote:

 Hi,

 I need to apply horizontal scaling for a text with 'Arial' font.
 lbl.scaleX = 0.70 simply does not work . I can only see that
 there is
a
 change in the width of the label.

 Is there anything i am missing out to scale the text?? Is
 scaling not
 applicable for system fonts? ( I tried the same with font
 'Verdana',
 but again, no luck!)

 Any help would be greatly appreciated.
   
Try one of the following:
   
1) Set the blendMode to layer
2) Set the container's cacheAsBitmap to true
3) Embed the font
   
HTH;
   
Amy
   
   Hi Amy,
  
   Thanks for your response. I tried what you suggested, embedding the
   font and then applying scaleX to the text.
   This works fine if the font is just 'Arial'. It does not work if i
   make the text bold/italic. It is necessary for the font to be bold and
   in italics. I cant get it to work:(
  
   akila
  
  
  
 
 
 
  --
  Haykel Ben Jemia
 
  Allmas
  Web  RIA Development
  http://www.allmas-tn.com
 
 Hi Haykel,

 I tried this one too, it still doesnt work..
 It looks like i just cant scale text which is bold and italisized!

  




-- 
Haykel Ben Jemia

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


[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Amy
--- In flexcoders@yahoogroups.com, akila_ksri [EMAIL PROTECTED] 
wrote:

 --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
 
  --- In flexcoders@yahoogroups.com, akila_ksri akila_ksri@ 
wrote:
  
   Hi,
   
   I need to apply horizontal scaling for a text with 'Arial' font.
   lbl.scaleX = 0.70 simply does not work . I can only see that 
there is 
  a 
   change in the width of the label.
   
   Is there anything i am missing out to scale the text?? Is 
scaling not 
   applicable for system fonts? ( I tried the same with 
font 'Verdana', 
   but again, no luck!)
   
   Any help would be greatly appreciated.
  
  Try one of the following:
  
  1)  Set the blendMode to layer
  2)  Set the container's cacheAsBitmap to true
  3)  Embed the font
  
  HTH;
  
  Amy
 
 Hi Amy,
 
 Thanks for your response. I tried what you suggested, embedding the
 font and then applying scaleX to the text.
 This works fine if the font is just 'Arial'. It does not work if i
 make the text bold/italic. It is necessary for the font to be bold 
and
  in italics. I cant get it to work:(

Try using the blendMode setting instead.  It's way simpler, and it 
won't bloat your file size.

HTH;

Amy



Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
You can't apply any effects or transformations (alpha, rotation, scaling
etc.) on fonts if they are not embedded!


On Mon, Oct 20, 2008 at 4:21 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 akila_ksri [EMAIL PROTECTED]
 wrote:
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy
 amyblankenship@ wrote:
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 akila_ksri akila_ksri@
 wrote:
   
Hi,
   
I need to apply horizontal scaling for a text with 'Arial' font.
lbl.scaleX = 0.70 simply does not work . I can only see that
 there is
   a
change in the width of the label.
   
Is there anything i am missing out to scale the text?? Is
 scaling not
applicable for system fonts? ( I tried the same with
 font 'Verdana',
but again, no luck!)
   
Any help would be greatly appreciated.
  
   Try one of the following:
  
   1) Set the blendMode to layer
   2) Set the container's cacheAsBitmap to true
   3) Embed the font
  
   HTH;
  
   Amy
  
  Hi Amy,
 
  Thanks for your response. I tried what you suggested, embedding the
  font and then applying scaleX to the text.
  This works fine if the font is just 'Arial'. It does not work if i
  make the text bold/italic. It is necessary for the font to be bold
 and
  in italics. I cant get it to work:(

 Try using the blendMode setting instead. It's way simpler, and it
 won't bloat your file size.

 HTH;

 Amy

  




-- 
Haykel Ben Jemia

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


[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread akila_ksri
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] 
wrote:

 You can't apply any effects or transformations (alpha, rotation, 
scaling
 etc.) on fonts if they are not embedded!
 
 
 On Mon, Oct 20, 2008 at 4:21 PM, Amy [EMAIL PROTECTED] wrote:
 
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com,
  akila_ksri akila_ksri@
  wrote:
  
   --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Amy
  amyblankenship@ wrote:
   
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com,
  akila_ksri akila_ksri@
  wrote:

 Hi,

 I need to apply horizontal scaling for a text with 'Arial' 
font.
 lbl.scaleX = 0.70 simply does not work . I can only see 
that
  there is
a
 change in the width of the label.

 Is there anything i am missing out to scale the text?? Is
  scaling not
 applicable for system fonts? ( I tried the same with
  font 'Verdana',
 but again, no luck!)

 Any help would be greatly appreciated.
   
Try one of the following:
   
1) Set the blendMode to layer
2) Set the container's cacheAsBitmap to true
3) Embed the font
   
HTH;
   
Amy
   
   Hi Amy,
  
   Thanks for your response. I tried what you suggested, 
embedding the
   font and then applying scaleX to the text.
   This works fine if the font is just 'Arial'. It does not work 
if i
   make the text bold/italic. It is necessary for the font to be 
bold
  and
   in italics. I cant get it to work:(
 
  Try using the blendMode setting instead. It's way simpler, and it
  won't bloat your file size.
 
  HTH;
 
  Amy
 
   
 
 
 
 
 -- 
 Haykel Ben Jemia
 
 Allmas
 Web  RIA Development
 http://www.allmas-tn.com

Hi Haykel,

I tried the example you sent, and it works!
Thanks a ton:)

-akila



[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread akila_ksri
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, akila_ksri akila_ksri@ 
 wrote:
 
  --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
  
   --- In flexcoders@yahoogroups.com, akila_ksri akila_ksri@ 
 wrote:
   
Hi,

I need to apply horizontal scaling for a text with 'Arial' 
font.
lbl.scaleX = 0.70 simply does not work . I can only see that 
 there is 
   a 
change in the width of the label.

Is there anything i am missing out to scale the text?? Is 
 scaling not 
applicable for system fonts? ( I tried the same with 
 font 'Verdana', 
but again, no luck!)

Any help would be greatly appreciated.
   
   Try one of the following:
   
   1)  Set the blendMode to layer
   2)  Set the container's cacheAsBitmap to true
   3)  Embed the font
   
   HTH;
   
   Amy
  
  Hi Amy,
  
  Thanks for your response. I tried what you suggested, embedding 
the
  font and then applying scaleX to the text.
  This works fine if the font is just 'Arial'. It does not work if 
i
  make the text bold/italic. It is necessary for the font to be 
bold 
 and
   in italics. I cant get it to work:(
 
 Try using the blendMode setting instead.  It's way simpler, and it 
 won't bloat your file size.
 
 HTH;
 
 Amy

Hi Amy,

I got it working with what Haykel suggested.
Thanks for your response too.

akila




[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Amy
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] 
wrote:

 You can't apply any effects or transformations (alpha, rotation, 
scaling
 etc.) on fonts if they are not embedded!

So they tell me.  Yet somehow I do, by setting the blendMode.  Go 
figure ;-).



Re: [flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Haykel BEN JEMIA
Could you post a working example? This would really interest me!


On Mon, Oct 20, 2008 at 5:08 PM, Amy [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Haykel BEN JEMIA [EMAIL PROTECTED]
 wrote:
 
  You can't apply any effects or transformations (alpha, rotation,
 scaling
  etc.) on fonts if they are not embedded!

 So they tell me. Yet somehow I do, by setting the blendMode. Go
 figure ;-).

  




-- 
Haykel Ben Jemia

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


[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-20 Thread Amy
--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] 
wrote:

 Could you post a working example? This would really interest me!

I'll try to make time tonight :-).

-Amy



[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-19 Thread akila_ksri
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, akila_ksri akila_ksri@ wrote:
 
  Hi,
  
  I need to apply horizontal scaling for a text with 'Arial' font.
  lbl.scaleX = 0.70 simply does not work . I can only see that there is 
 a 
  change in the width of the label.
  
  Is there anything i am missing out to scale the text?? Is scaling not 
  applicable for system fonts? ( I tried the same with font 'Verdana', 
  but again, no luck!)
  
  Any help would be greatly appreciated.
 
 Try one of the following:
 
 1)  Set the blendMode to layer
 2)  Set the container's cacheAsBitmap to true
 3)  Embed the font
 
 HTH;
 
 Amy

Hi Amy,

Thanks for your response. I tried what you suggested, embedding the
font and then applying scaleX to the text.
This works fine if the font is just 'Arial'. It does not work if i
make the text bold/italic. It is necessary for the font to be bold and
 in italics. I cant get it to work:(

akila



[flexcoders] Re: Problem with scaleX for system fonts!

2008-10-16 Thread Amy
--- In flexcoders@yahoogroups.com, akila_ksri [EMAIL PROTECTED] wrote:

 Hi,
 
 I need to apply horizontal scaling for a text with 'Arial' font.
 lbl.scaleX = 0.70 simply does not work . I can only see that there is 
a 
 change in the width of the label.
 
 Is there anything i am missing out to scale the text?? Is scaling not 
 applicable for system fonts? ( I tried the same with font 'Verdana', 
 but again, no luck!)
 
 Any help would be greatly appreciated.

Try one of the following:

1)  Set the blendMode to layer
2)  Set the container's cacheAsBitmap to true
3)  Embed the font

HTH;

Amy