self:set_antialiased
Client
Sets the antialiasing state of the font
Syntax
local status = self:set_antialiased(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | Determines the antialiasing state: • When true - enables grayscale antialiasing for smoother glyph edges• When false - disables antialiasing, rendering glyphs as 1-bit bitmaps |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.font.create("fonts/Roboto-Regular.ttf")
-- Enable antialiasing
entity:set_antialiased(true)