what-the-bank/sources/o/FDA.java

22 lines
734 B
Java

package o;
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.os.Build;
/* loaded from: classes2.dex */
public final class FDA {
public static Typeface KF_(Configuration configuration, Typeface typeface) {
if (Build.VERSION.SDK_INT < 31 || configuration.fontWeightAdjustment == Integer.MAX_VALUE || configuration.fontWeightAdjustment == 0 || typeface == null) {
return null;
}
int weight = typeface.getWeight() + configuration.fontWeightAdjustment;
if (weight <= 0) {
weight = 1;
} else if (weight > 1000) {
weight = 1000;
}
return Typeface.create(typeface, weight, typeface.isItalic());
}
}