INNER CODE UNIT · TypeScript

applyFontBold

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

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 {
  perry_ui_widget_set_background_color(handle, r, g, b, a);
}

export function applyRadius(handle: number, radius: number): void {
  perry_ui_widget_set_corner_radius(handle, radius);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…