self:set_antialiased

Client

Sets the antialiasing state of the font


Syntax

local status = self:set_antialiased(
    state
)

Parameters

TypeNameDescription
boolstateDetermines the antialiasing state:
• When true - enables grayscale antialiasing for smoother glyph edges
• When false - disables antialiasing, rendering glyphs as 1-bit bitmaps

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the antialiasing state of a font
local entity = core.font.create("fonts/Roboto-Regular.ttf")

-- Enable antialiasing
entity:set_antialiased(true)

On this page