This is for a global system setting, which is not currently available to
users.  If you want to have a local font scale setting in your app, you will
need to implement that yourself.

On Tue, Sep 13, 2011 at 12:50 PM, Doug Gordon <[email protected]> wrote:

> In a number of places the documentation recommends specifying font sizes in
> "sp" (scaled pixels) because the size can then be adjusted by "user
> preference". However, AFAIK there is no global way to do this. So if I want
> to allow users to increase or decrease the font size in my app, I assume
> that I'll have to implement my own app-specific preference.
>
> The problem is that I can't see how to change the setting. DisplayMetrics
> has a "scaledDensity" field that is obviously the scaling factor that
> affects font specified in "sp", but I don't see any way to change that
> value. Am I missing something?
>
> Doug Gordon
> GHCS Software
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com<[email protected]>
> To unsubscribe from this group, send email to
> android-developers+**[email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to