You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Sumudu Chinthaka <cs...@gmail.com> on 2013/11/27 10:53:11 UTC
flex mobile get device font size
Hi all
I have being searching the web for this and could not find a proper answer
hope someone form flex community would answer
is there a way to get the device font size from flex mobile application
like in android native we can set the font size according to Scale
independent pixels what is the way to set the font size in flex, do we have
to set it through css by using media query?
thanks
Sumudu
Re: flex mobile get device font size
Posted by Alex Harui <ah...@adobe.com>.
There is a default fontSize style in the framework's defaults.css
On 12/10/13 8:55 PM, "csumudu" <cs...@gmail.com> wrote:
>when we create a label control and add it to display list without any
>styles
>there is a default font size applied to the label, how does flex set that.
>
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/flex-mobile-get-device-font
>-size-tp3953p4163.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: flex mobile get device font size
Posted by csumudu <cs...@gmail.com>.
when we create a label control and add it to display list without any styles
there is a default font size applied to the label, how does flex set that.
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/flex-mobile-get-device-font-size-tp3953p4163.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: flex mobile get device font size
Posted by Alex Harui <ah...@adobe.com>.
I'm not sure what you are asking. Are you trying to determine the default
font size on the device? You might need an ANE for that. Are you trying
to use Flex CSS to set a font size that isn't in pixels? Flex only
supports pixels for font-size. You can try computing a font size
yourself. Not sure media query will work.
On 11/27/13 1:53 AM, "Sumudu Chinthaka" <cs...@gmail.com> wrote:
>Hi all
>
>I have being searching the web for this and could not find a proper answer
>hope someone form flex community would answer
>
>is there a way to get the device font size from flex mobile application
>
>like in android native we can set the font size according to Scale
>independent pixels what is the way to set the font size in flex, do we
>have
>to set it through css by using media query?
>
>thanks
>Sumudu