INNER CODE UNIT · TypeScript
applyTextColor
PerryTS/perry · packages/perry-styling/src/index.ts:108
export function applyTextColor(handle: number, r: number, g: number, b: number, a: number): void {
perry_ui_text_set_color(handle, r, g, b, a);
}
export function applyFontSize(handle: number, size: number): void {
perry_ui_text_set_font_size(handle, size);
}
// Bold text — weight 1.0 = NSFontWeightBold
export function applyFontBold(handle: number, size: number): void {
perry_ui_text_set_font_weight(handle, size, 1.0);
}
export function applyFontFamily(handle: number, family: string): void {
perry_ui_text_set_font_family(handle, family);
}
// -------------------------------------------------------------------