1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!--
    DEPRECATED: This XML file is no longer a source of the font files installed
    in the system.

    For the device vendors: please add your font configurations to the
    platform/frameworks/base/data/font_fallback.xml and also add it to this XML
    file as much as possible for apps that reads this XML file.

    For the application developers: please stop reading this XML file and use
    android.graphics.fonts.SystemFonts#getAvailableFonts Java API or
    ASystemFontIterator_open NDK API for getting list of system installed
    font files.

    WARNING: Parsing of this file by third-party apps is not supported. The
    file, and the font files it refers to, will be renamed and/or moved out
    from their respective location in the next Android release, and/or the
    format or syntax of the file may change significantly. If you parse this
    file for information about system fonts, do it at your own risk. Your
    application will almost certainly break with the next major Android
    release.

    In this file, all fonts without names are added to the default list.
    Fonts are chosen based on a match: full BCP-47 language tag including
    script, then just language, and finally order (the first font containing
    the glyph).

    Order of appearance is also the tiebreaker for weight matching. This is
    the reason why the 900 weights of Roboto precede the 700 weights - we
    prefer the former when an 800 weight is requested. Since bold spans
    effectively add 300 to the weight, this ensures that 900 is the bold
    paired with the 500 weight, ensuring adequate contrast.

    TODO(rsheeter) update comment; ordering to match 800 to 900 is no longer required
-->