robot_2Generated
code_blocksInput

Description

The FontSmooth.Auto field is a member of the FontSmooth enumeration within the Sandbox.UI namespace. It represents an option for font smoothing where the system automatically decides whether to apply anti-aliasing based on availability and context. This is useful for ensuring that text rendering is optimized for the current environment without requiring manual configuration.

Usage

Use FontSmooth.Auto when you want the system to automatically determine the best approach for font smoothing. This is typically the default choice when you want to ensure that text is rendered as clearly as possible without needing to specify whether anti-aliasing should be applied.

Example

// Example of setting font smoothing to Auto in a UI component
var label = new Label();
label.Style.FontSmooth = FontSmooth.Auto;