Lines Matching refs:weight
92 // Calculate the required weight based on style and weight of this typeface.
93 int weight = mWeight + 50 +
95 if (weight > 1000) {
96 weight = 1000;
97 } else if (weight < 100) {
98 weight = 100;
105 Font font = ffd.getFont(weight, isItalic);
119 Font font2 = ffd2.getFont(weight, isItalic);
170 int weight, boolean italic) {
179 int style = weight >= 600 ? (italic ? Typeface.BOLD_ITALIC : Typeface.BOLD) :
181 return sManager.addNewDelegate(new Typeface_Delegate(delegate.mFontFamilies, style, weight));
203 /*package*/ static long nativeCreateWeightAlias(long native_instance, int weight) {
212 new Typeface_Delegate(delegate.mFontFamilies, delegate.mStyle, weight);
217 /*package*/ static synchronized long nativeCreateFromArray(long[] familyArray, int weight,
223 if (weight == Typeface.RESOLVE_BY_FONT_TABLE) {
224 weight = 400;
229 int style = weight >= 600 ? (italic == 1 ? Typeface.BOLD_ITALIC : Typeface.BOLD) :
231 Typeface_Delegate delegate = new Typeface_Delegate(fontFamilies, style, weight);
284 public Typeface_Delegate(@NonNull FontFamily_Delegate[] fontFamilies, int style, int weight) {
287 mWeight = weight;