The FontSmooth
property in the BaseStyles
class represents the font-smooth
CSS property. This property is used to control the anti-aliasing of fonts, which can affect the rendering quality and performance of text in a UI element.
The FontSmooth
property in the BaseStyles
class represents the font-smooth
CSS property. This property is used to control the anti-aliasing of fonts, which can affect the rendering quality and performance of text in a UI element.
To use the FontSmooth
property, you can set it to a value of the FontSmooth
enumeration, which may include options like Auto
, Never
, or Always
. This allows you to specify how the text should be smoothed on the screen.
BaseStyles styles = new BaseStyles(); styles.FontSmooth = FontSmooth.Always; // Ensures text is always smoothed // Apply styles to a UI element UIElement element = new UIElement(); element.Styles = styles;