bump
On 1/11/07, Rick Schmitty <[EMAIL PROTECTED]> wrote: > Hi all, I'm having some wierd display issues when using a font in a > combo box. Things dont pop up where they should or appear in doubles > (aside from the intentional repeating) > > Here is the snippet > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> > <mx:Script> > <![CDATA[ > [Bindable] > private var dp:Array=[{label:"0 Arial",font:"myArial"}, > {label:"1 > Rage",font:"myRage"}, > {label:"2 Bookman > Antica",font:"myBkant"}, > {label:"3 > Tahoma",font:"myTahoma"}, > {label:"4 Times New > Roman",font:"myTimes"}, > {label:"5 > Trebuchet",font:"myTrebuc"}, > {label:"6 > Arial",font:"myArial"}, > {label:"7 > Rage",font:"myRage"}, > {label:"8 Bookman > Antica",font:"myBkant"}, > {label:"9 > Tahoma",font:"myTahoma"}, > {label:"10 Times > New Roman",font:"myTimes"}, > {label:"11 > Trebuchet",font:"myTrebuc"}, > ]; > ]]> > </mx:Script> > > <mx:DataGrid id="dg" dataProvider="{dp}"/> > > <mx:ComboBox id="cb" dataProvider="{dp}"> > <mx:itemRenderer> > <mx:Component> > <mx:Text > xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="14" > creationComplete="init()"> > <mx:Script> > <![CDATA[ > private function init():void { > trace(data.label); > > setStyle("fontFamily",data.font); > text=data.label; > } > ]]> > </mx:Script> > </mx:Text> > </mx:Component> > </mx:itemRenderer> > </mx:ComboBox> > > > > <mx:Style> > @font-face { > src: url("/assets/fonts/ARIAL.TTF"); > fontFamily: myArial; > } > @font-face { > src: url("/assets/fonts/BKANT.TTF"); > fontFamily: myBkant; > } > @font-face { > src: url("/assets/fonts/TAHOMA.TTF"); > fontFamily: myTahoma; > } > @font-face { > src: url("/assets/fonts/TIMES.TTF"); > fontFamily: myTimes; > } > @font-face { > src: url("/assets/fonts/TREBUC.TTF"); > fontFamily: myTrebuc; > } > </mx:Style> > </mx:Application> >

