48 lines
827 B
TypeScript
48 lines
827 B
TypeScript
// Metro module 5109 (f5110).
|
|
import { Fonts } from "../../../Constants";
|
|
let c3074_1 = {
|
|
10: 10,
|
|
11: 11,
|
|
12: 12,
|
|
13: 13,
|
|
14: 14,
|
|
16: 16,
|
|
18: 17,
|
|
20: 20,
|
|
24: 25,
|
|
32: 34
|
|
};
|
|
let c3074_2 = {
|
|
10: 14,
|
|
11: 14,
|
|
12: 16,
|
|
13: 16,
|
|
14: 18,
|
|
16: 20,
|
|
18: 24,
|
|
20: 24,
|
|
24: 30,
|
|
32: 40
|
|
};
|
|
export default function createTextStyle(a0, a1, a2, a3) {
|
|
const fontSize = c3074_1[a2];
|
|
const r13 = {
|
|
fontFamily: a0,
|
|
fontSize,
|
|
lineHeight: c3074_2[a2]
|
|
};
|
|
if (a1 != null) {
|
|
r13.color = a1;
|
|
}
|
|
if (a3?.uppercase === true) {
|
|
r13.textTransform = "uppercase";
|
|
if (fontSize <= 14 && (a0 === Fonts.DISPLAY_EXTRABOLD || a0 === Fonts.DISPLAY_SEMIBOLD)) {
|
|
r13.letterSpacing = 0.2;
|
|
}
|
|
}
|
|
if (a3?.marginBottom != null) {
|
|
r13.marginBottom = a3.marginBottom;
|
|
}
|
|
return r13;
|
|
};
|