INNER CODE UNIT · TypeScript

applyFontSize

PerryTS/perry · packages/perry-styling/src/index.ts:112

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);
}

// -------------------------------------------------------------------
// Widget styling — background, radius, width, tooltip
// -------------------------------------------------------------------

export function applyBg(handle: number, r: number, g: number, b: number, a: number): void {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…