Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First, the default is not Arial. The default is Droid Sans.</p> <p>Second, to change to a different built-in font, use <code>android:typeface</code> in layout XML or <code>setTypeface()</code> in Java.</p> <p>Third, there is no Helvetica font in Android. The built-in choices are Droid Sans (<code>sans</code>), Droid Sans Mono (<code>monospace</code>), and Droid Serif (<code>serif</code>). While you can bundle your own fonts with your application and use them via <code>setTypeface()</code>, bear in mind that font files are big and, in some cases, require licensing agreements (e.g., <a href="http://www.linotype.com/526/helvetica-family.html" rel="noreferrer">Helvetica, a Linotype font</a>).</p> <p><strong>EDIT</strong></p> <blockquote> <p>The Android design language relies on traditional typographic tools such as scale, space, rhythm, and alignment with an underlying grid. Successful deployment of these tools is essential to help users quickly understand a screen of information. To support such use of typography, Ice Cream Sandwich introduced a new type family named Roboto, created specifically for the requirements of UI and high-resolution screens.</p> <p>The current TextView framework offers Roboto in thin, light, regular and bold weights, along with an italic style for each weight. The framework also offers the Roboto Condensed variant in regular and bold weights, along with an italic style for each weight.</p> </blockquote> <p>After ICS, android includes Roboto fonts style, Read more <a href="http://developer.android.com/design/style/typography.html" rel="noreferrer">Roboto</a></p> <p><strong>EDIT 2</strong></p> <blockquote> <p>With the advent of Support Library 26, Android now supports custom fonts by default. You can insert new fonts in <strong>res/fonts</strong> which can be set to TextViews individually either in XML or programmatically. The default font for the whole application can also be changed by defining it styles.xml The android developer documentation has a clear guide on this <a href="https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html" rel="noreferrer">here</a></p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload