Loading core/res/res/values/attrs.xml +5 −2 Original line number Diff line number Diff line Loading @@ -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 Loading graphics/java/android/graphics/Typeface.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
core/res/res/values/attrs.xml +5 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
graphics/java/android/graphics/Typeface.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading