Font
self:get_oversampling
Client
Retrieves the oversampling factor of the font
Syntax
local result = self:get_oversampling()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | result | Current oversampling factor of the font |
Examples
local fontface = font.create("fonts/Roboto-Regular.ttf")
engine.print("info", "Font oversampling:", fontface:get_oversampling())