问题
I am a designer trying to design my typography for mobile apps. I have a question regarding how "accessibility" will affect the font sizes.
As in Android, you can change the font size scale from tiny to huge. By default it is "Small".
As I play around with the font size, it seems to me that some font sizes within an app will change and some will not. How can I tell which font will be affected by accessibility and which will not?
Similar to iOS as well, how well accessibility affect the font sizes?
回答1:
You can use dp for fixed pixel font sizes or sp for dynamic font sizes in Android. E.g.:
android:textSize="26sp"
or
android:textSize="26dp"
User preferences will affect the first one. The second one not.
A good overview
回答2:
To understand how the font sizes work in iOS, take a look at the WWDC 2017 : Building Apps with Dynamic Type
video whose content is perfectly summarized here.
The first two sections (Text styles
and Custom fonts
) should provide you important information about the connection between accessibility and the font sizes.
Everything is well explained to get a full understanding of how the text styles, the font sizes and the custom fonts must be used to have the expected response in iOS accessibility.
来源:https://stackoverflow.com/questions/34712864/how-accessibility-affect-font-sizes-in-ios-and-android