Vital.sandbox
Font

self:get_oversampling

Client

Retrieves the oversampling factor of the font


Syntax

local result = self:get_oversampling()

Parameters

TypeNameDescription

Returns

TypeNameDescription
floatresultCurrent oversampling factor of the font

Examples

Get the oversampling factor of a font
local fontface = font.create("fonts/Roboto-Regular.ttf")

engine.print("info", "Font oversampling:", fontface:get_oversampling())

On this page