如果开发者没有指定任何东西,android中使用的默认字体是什么 [英] What is the default font used in android if developer didn`t specify any
问题描述
我想知道Android操作系统为我的应用程序使用的默认字体是什么,如果我没有指定要使用的任何字体。
预先感谢您的帮助
对于运行 stock-Android ,根据材料设计指南:blockquote>
Roboto是Android上的标准字体。但是,如果您使用的语言不是
Roboto
所涵盖的语言(请检查相同的链接来查看所有的语言),字体将被切换到Noto
诺托是所有语言的标准字体,适用于所有Roboto未涵盖的语言。这就是说,实际字体根据使用的地方而不同(参见下面的一些例子,从相同的指南) / b>
应用程序栏
标题样式,中20sp
按钮
中:中14sp,全部大写
密集:中15sp,全部大写
高:粗体15sp
对于前棒棒糖设备,适用相同的规则,但是您可能会注意到不同版本之间的一些变化,因为Google精炼了 Roboto
时间过去了。
但是,以上所有仅适用于 stock-Android ,其余部分具有预定义的字体/基于设备或制造商的字体。正如Eli Sadoff指出的那样,大多数这些设备都可以让用户选择一种默认的字体,即使您的应用程序使用了自定义字体,也可以跨所有应用程序使用(无一例外)。
PS:确保阅读提供的链接中的所有内容,因为您可以找到更多有用的信息。
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
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 20spButtons
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.
这篇关于如果开发者没有指定任何东西,android中使用的默认字体是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!