dazza5000
12/13/2023, 5:35 PMdazza5000
12/13/2023, 5:35 PMprivate fun buildStyledTypeface(fontWeight: FontWeight, fontStyle: FontStyle) =
if (Build.VERSION.SDK_INT < 28) {
Typeface.create(
nativeTypeface,
getAndroidTypefaceStyle(fontWeight, fontStyle)
)
} else {
TypefaceHelperMethodsApi28.create(
nativeTypeface,
fontWeight.weight,
fontStyle == FontStyle.Italic
)
}
Stylianos Gakis
12/13/2023, 5:36 PMfontStyle == FontStyle.Italic
looks like a check if it’s italic, rather than a hardcoding of it? Where does this code exist?dazza5000
12/13/2023, 5:37 PMdazza5000
12/13/2023, 5:37 PMdazza5000
12/13/2023, 5:37 PMdazza5000
12/13/2023, 5:38 PMdazza5000
12/13/2023, 5:38 PM