What is the default font used in android if developer didn`t specify any

安稳与你 提交于 2019-12-12 18:50:53

问题


I want to know what is the default font that is used by Android OS for my app if i didn`t specify any font to be used.

This post didn`t help

Thanks in advance for any help


回答1:


For the devices that run stock-Android, according to Material Design Guidelines:

Roboto is the standard typeface on Android.

But in case that you use languages not covered by Roboto (check the same link to see all languages covered by it), the typeface will be switched to Noto

Noto is the standard typeface for all languages on Chrome and Android for all languages not covered by Roboto.

That being said, the actuals fonts differ depending on the place where they are used (see below some examples from the same guideline)

App bar
Title style, Medium 20sp

Buttons
English: Medium 14sp, all caps
Dense: Medium 15sp, all caps
Tall: Bold 15sp

For the pre-Lollipop devices, the same rules apply, but you might notice some changes between different versions since Google refined Roboto as the time passed.

However, all the above are true only for stock-Android, the rest of them having a predefined typeface/font based on the device or manufacturer. As Eli Sadoff stated, most of these devices let the user pick a default font which will be used across all apps (without exceptions), even if you have a custom font for your app.

PS: Make sure to read everything form the provided link because you'll find more useful information.




回答2:


The default font varies phone to phone. The default font can be set by the user on certain varieties of Android (like Samsung phones), and on others the default font is set and cannot be changed by the user. There is no single default font.



来源:https://stackoverflow.com/questions/40133793/what-is-the-default-font-used-in-android-if-developer-didnt-specify-any

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!