Home | History | Annotate | Download | only in style
      1 page.title=Typography
      2 @jd:body
      3 
      4 <div class="layout-content-row">
      5   <div class="layout-content-col span-8">
      6 
      7     <img src="{@docRoot}design/media/typography_main.png">
      8 
      9   </div>
     10   <div class="layout-content-col span-5">
     11 
     12 <p>The Android design language relies on traditional typographic tools such as scale, space, rhythm,
     13 and alignment with an underlying grid. Successful deployment of these tools is essential to help
     14 users quickly understand a screen of information. To support such use of typography, Ice Cream
     15 Sandwich introduced a new type family named Roboto, created specifically for the requirements of UI
     16 and high-resolution screens. The current TextView framework supports regular, bold, italic, and bold
     17 italic weights by default.</p>
     18 
     19     <img src="{@docRoot}design/media/typography_alphas.png">
     20 
     21 <p><a href="{@docRoot}downloads/design/Roboto_Hinted_20111129.zip">Download Roboto</a></p>
     22 <p><a href="{@docRoot}downloads/design/Roboto_Specimen_Book_20111129.pdf">Specimen Book</a></p>
     23 
     24   </div>
     25 </div>
     26 
     27 <hr>
     28 
     29 <div class="layout-content-row">
     30   <div class="layout-content-col span-6">
     31 
     32 <h4>Default type colors</h4>
     33 <p>The Android UI uses the following default color styles: <code>textColorPrimary</code> and
     34 <code>textColorSecondary</code>. For light themes use <code>textColorPrimaryInverse</code> and
     35 <code>textColorSecondaryInverse</code>. The framework text color styles also support variants for
     36 touch feedback states when used inside UI elements.</p>
     37 
     38     <img src="{@docRoot}design/media/typography_defaults.png">
     39 
     40   </div>
     41   <div class="layout-content-col span-6">
     42 
     43 <h4>Typographic Scale</h4>
     44 <p>Contrast in type sizes can go a long way to create ordered, understandable layouts. However, too
     45 many different sizes in the same UI can be messy. The Android framework uses the following limited
     46 set of type sizes:</p>
     47 
     48 <img src="{@docRoot}design/media/typography_sizes.png">
     49 
     50 <p>Users can select a system-wide scaling factor for text in the Settings app. In order to support
     51 these accessibility features, type should be specified in scale-independent pixels
     52 (<acronym title="Scale-independent pixels. One sp is one pixel on a 160 dpi screen if the user's global text scale is set to 100%.">sp</acronym>)
     53 wherever possible. Layouts supporting scalable types should be tested against these settings.</p>
     54 
     55   </div>
     56 </div>
     57