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

Commit ec397abf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update the ttc index attribute documentation"

parents 7490c5cb e72b5c51
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