Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e72b5c51 authored by Mihai Popa's avatar Mihai Popa
Browse files

Update the ttc index attribute documentation

The CL updates the documentation of the ttcIndex attribute added for P,
according to the API review comments.

Bug: 71555180
Test: none
Change-Id: I44a617c4f0a10314008fe5d5b380c6a830f3e04f
parent 64d467ec
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -8699,8 +8699,11 @@
         common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
         in the font's header tables will be used. -->
        <attr name="fontWeight" format="integer" />
        <!-- The index of the font in the tcc font file. If the font file referenced is not in the
         tcc format, this attribute needs not be specified. -->
        <!-- The index of the font in the ttc (TrueType Collection) font file. If the font file
         referenced is not in the ttc format, this attribute needs not be specified.
         {@see android.graphics.Typeface#Builder.setTtcIndex(int)}.
         The default value is 0. More details about the TrueType Collection font format can be found
         here: https://en.wikipedia.org/wiki/TrueType#TrueType_Collection. -->
        <attr name="ttcIndex" format="integer" />
        <!-- The variation settings to be applied to the font. The string should be in the following
         format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+1 −1
Original line number Diff line number Diff line
@@ -429,7 +429,7 @@ public class Typeface {
        }

        /**
         * Sets an index of the font collection.
         * Sets an index of the font collection. See {@link android.R.attr#ttcIndex}.
         *
         * Can not be used for Typeface source. build() method will return null for invalid index.
         * @param ttcIndex An index of the font collection. If the font source is not font