tried like this: @font-face { font-family: myArial; embedAsCFF: true;/*tried also *false* here*/ src: url("../../../../assets/arialbd.ttf"); } .customStyle { fontFamily: myArial; fontSize: 14;
/*tried add/remove skin class seems to have no effect*/ fontWeight: bold; } On 2 October 2014 11:21, Alex Harui <aha...@adobe.com> wrote: > Did you add font weight in both places? What does your code look like now? > Sent via the PANTECH Discover, an AT&T 4G LTE smartphone. > > Maxim Solodovnik <solomax...@gmail.com> wrote: > > > doesn't work :( > Maybe IntellyJ config need to corrected somehow? (*.apk contains the font > but the rotated text is not displayed :( ) > > On 1 October 2014 23:16, Alex Harui <aha...@adobe.com> wrote: > > > I just looked at the default mobile theme. It sets the fontWeight of > > Button to "bold" so you probably have to either embed a bold font or set > > the fontWeight back to "normal". > > > > -ALex > > > > On 10/1/14 8:14 AM, "Maxim Solodovnik" <solomax...@gmail.com> wrote: > > > > >Maybe someone have working example? > > > > > >On 1 October 2014 01:20, Maxim Solodovnik <solomax...@gmail.com> wrote: > > > > > >> just double checked with this example: > > >> > > >> > > > http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c6a9f451212b > > >>87fe7e87-8000.html > > >> (slightly modified) > > >> > > >> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library:// > > >> ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" > > >> contentCreationComplete="contentCreated();" title="{data.name > }" > > >> preinitialize="preinit(event);" > > > >> <fx:Style> > > >> @namespace s "library://ns.adobe.com/flex/spark"; > > >> @font-face { > > >> font-family: myArial; > > >> embedAsCFF: false; > > >> src: url("../../../../assets/arial.ttf"); > > >> } > > >> .customStyle { > > >> fontFamily: myArial; > > >> fontSize: 14; > > >> skinClass: ClassReference("spark.skins.mobile.ButtonSkin"); > > >> } > > >> </fx:Style> > > >> > > >> <s:Button id="chat" styleName="customStyle" label="Chat" rotation="90" > > >> width="120"/> > > >> > > >> </s:View> > > >> > > >> > > >> no luck :( > > >> > > >> > > >> On 1 October 2014 01:17, Maxim Solodovnik <solomax...@gmail.com> > wrote: > > >> > > >>> not sure :( > > >>> folder only contain *.jar files > > >>> > > >>> > > >>> On 1 October 2014 01:12, Alex Harui <aha...@adobe.com> wrote: > > >>> > > >>>> I keep forgetting to ask folks: Have you installed the font > embedding > > >>>> libraries in your SDK? Do you have files in the SDK's > > >>>> lib/external/optional folder? > > >>>> > > >>>> On 9/30/14 11:09 AM, "Maxim Solodovnik" <solomax...@gmail.com> > wrote: > > >>>> > > >>>> >Tried this one: > > >>>> > > > >>>> > > >>>> > > http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c6a9f45121 > > >>>>2b8 > > >>>> >7fe7e87-8000.html > > >>>> >Font was arial.ttf from windows fonts > > >>>> > > > >>>> >And some others tutorials (don't remember exactly) > > >>>> > > > >>>> >Will double check > > >>>> > > > >>>> >On 1 October 2014 01:05, OmPrakash Muppirala <bigosma...@gmail.com > > > > >>>> wrote: > > >>>> > > > >>>> >> Yes, if you rotate text, usually the font disappears. How > exactly > > >>>>are > > >>>> >>you > > >>>> >> embedding the font? > > >>>> >> > > >>>> >> Thanks, > > >>>> >> Om > > >>>> >> > > >>>> >> On Tue, Sep 30, 2014 at 11:02 AM, Maxim Solodovnik > > >>>> >><solomax...@gmail.com> > > >>>> >> wrote: > > >>>> >> > > >>>> >> > Hello All, > > >>>> >> > > > >>>> >> > I'm trying to create rotated button as follows: > > >>>> >> > <s:Button id="chat" label="Chat" rotation="90" width="120"/> > > >>>> >> > > > >>>> >> > But see no text (both emulator and Android phone) > > >>>> >> > > > >>>> >> > button is created on View of Mobile project > > >>>> >> > flex latest > > >>>> >> > I tried to embed font, but with no luck > > >>>> >> > > > >>>> >> > Maybe anyone can help me to figure out what is wrong? > > >>>> >> > Thanks in advance > > >>>> >> > > > >>>> >> > -- > > >>>> >> > WBR > > >>>> >> > Maxim aka solomax > > >>>> >> > > > >>>> >> > > >>>> > > > >>>> > > > >>>> > > > >>>> >-- > > >>>> >WBR > > >>>> >Maxim aka solomax > > >>>> > > >>>> > > >>> > > >>> > > >>> -- > > >>> WBR > > >>> Maxim aka solomax > > >>> > > >> > > >> > > >> > > >> -- > > >> WBR > > >> Maxim aka solomax > > >> > > > > > > > > > > > >-- > > >WBR > > >Maxim aka solomax > > > > > > > -- > WBR > Maxim aka solomax > -- WBR Maxim aka solomax