Font:getPixelDensity

Returns the current pixel density for the Font. The default is 1.0. Normally, this is in pixels per meter. When rendering to a 2D texture, the units are pixels.

pixelDensity = Font:getPixelDensity()

Arguments

None

Returns

NameTypeDescription
pixelDensitynumberThe current pixel density.

See also