atom feed2 messages in [android-developers] Changing the...
FromSent OnAttachments
Doug GordonSep 13, 2011 12:49 pm 
Dianne HackbornSep 13, 2011 2:09 pm 
Subject:Re: [android-developers] Changing the "scaled pixel" size
From:Dianne Hackborn (
Date:Sep 13, 2011 2:09:06 pm

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 <> 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?

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.