self:get_oversampling
Client
Retrieves the oversampling factor of the font
Syntax
local result = self:get_oversampling()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | result | Current oversampling factor of the font |
Examples
local entity = core.font.create("fonts/Roboto-Regular.ttf")
core.engine.print("info", "Font oversampling:", entity:get_oversampling())