Now that's what I call a "gotcha" :)

Ladies and gentlemen, this is why we can't fork the list without Adobe's
blessing!

-Josh

On Fri, Jun 20, 2008 at 2:29 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  Combobox (and Button and a few others) use bold fontWeight.  You have to
> embed the bold version of the font as well.  I believe it looks something
> like:
>
>
>
> @font-face{
> src: url("assets/ARIALBD.TTF"); /* copy from Windows/fonts/
> folder */
> fontFamily: myArial;
>
> fontWeight: bold;
> }
>
>   ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *wyattwang
> *Sent:* Thursday, June 19, 2008 12:06 PM
> *To:* [email protected]
> *Subject:* [flexcoders] Re: How to rotate a Combo Box
>
>
>
>
> Thanks. Here's the test app:
>
> <?xml version="1.0"?>
> <!-- charts/BubbleRelativeSize.mxml -->
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute">
>
> <mx:Style>
> @font-face{
> src: url("assets/ARIAL.TTF"); /* copy from Windows/fonts/
> folder */
> fontFamily: myArial;
> }
>
> ComboBox {
> fontFamily: myArial;
> fontSize: 20;
> }
> </mx:Style>
>
>
> <mx:Script>
> <![CDATA[
> import mx.effects.Rotate;
> import mx.controls.ComboBox;
> import mx.collections.ArrayCollection;
> import mx.controls.Image;
> import flash.geom.Matrix;
> import flash.geom.Point;
>
> [Bindable]
> private var s1:ArrayCollection = new ArrayCollection( [
> {"x": 20, "y": 10, "r":10 },
> {"x": 40, "y": 5, "r":20 } ,
> {"x": 60, "y": 0, "r":30 }]);
>
> [Embed("assets/arial.ttf", fontName="MyArial")]
> public var myarial_font:Class;
>
>
> private function rotate():void {
> cb.rotation = 270;
> textinput.rotation = 270;
> }
>
> private function back():void {
> cb.rotation = 0;
> textinput.rotation = 0;
> }
>
> ]]>
> </mx:Script>
>
> <mx:Button label="rotate" click="rotate()"/>
> <mx:Button label="back" click="back()" x="104"/>
>
> <mx:ComboBox id="cb" dataProvider="{s1}" labelField="x"
> textAlign="center" width="131" x="198" y="169" height="33"/>
> <mx:TextInput x="446" y="178.95" id="textinput" text="This is a
> text" fontFamily="myArial" width="127"/>
>
> </mx:Application>
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, "Alex
> Harui" <[EMAIL PROTECTED]> wrote:
> >
> > The internal TextInput doesn't rotate? Post a test case.
> >
> >
>
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to