IIRC, fontWeight has to be specified in two places as in:

                @font-face {
                        font-family: myArial;

                        fontWeight: bold;
                        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; }


From: Maxim Solodovnik <[email protected]<mailto:[email protected]>>
Date: Wednesday, October 1, 2014 9:27 PM
To: aharui <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: Rotated button

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 <[email protected]<mailto:[email protected]>> 
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 <[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]>> 
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" 
> <[email protected]<mailto:[email protected]>> wrote:
>
> >Maybe someone have working example?
> >
> >On 1 October 2014 01:20, Maxim Solodovnik 
> ><[email protected]<mailto:[email protected]>> 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<http://ns.adobe.com/flex/spark>" 
> >> xmlns:mx="library://ns.adobe.com/flex/mx<http://ns.adobe.com/flex/mx>"
> >>         contentCreationComplete="contentCreated();" 
> >> title="{data.name<http://data.name>}"
> >> preinitialize="preinit(event);" >
> >> <fx:Style>
> >> @namespace s 
> >> "library://ns.adobe.com/flex/spark<http://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 
> >> <[email protected]<mailto:[email protected]>> wrote:
> >>
> >>> not sure :(
> >>> folder only contain *.jar files
> >>>
> >>>
> >>> On 1 October 2014 01:12, Alex Harui 
> >>> <[email protected]<mailto:[email protected]>> 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" 
> >>>> <[email protected]<mailto:[email protected]>> 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 
> >>>> ><[email protected]<mailto:[email protected]>>
> >>>> 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
> >>>> >><[email protected]<mailto:[email protected]>>
> >>>> >> 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

Reply via email to