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 ft = font.create("fonts/Roboto-Regular.ttf")
engine.print("info", "Font oversampling:", ft:get_oversampling())