self:set_oversampling
Client
Sets the oversampling factor of the font
Syntax
local status = self:set_oversampling(
value
)Parameters
| Type | Name | Description |
|---|---|---|
float | value | Oversampling factor for the font A value of 1.0 is the default with no oversampling - higher values improve sharpness when the font is scaled or transformed at the cost of memory |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.font.create("fonts/Roboto-Regular.ttf")
-- Customize oversampling
entity:set_oversampling(2.0)