On this page
API type

font

Font values for ui.print.

Syntax

Atlas Script
font

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Font values for ui.print. font.create(size, color) builds a Consolas font; size defaults to 1 and clamps to 0.5 through 4, while color accepts #RRGGBB/0xRRGGBB strings or rgb.* constants. font.default is white Consolas at size 1. Font size and color members are readable and writable.

Examples

Usage pattern
// font is available where its documented API returns or accepts this value.
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.