Font:setPixelDensity

Sets the pixel density for the Font. Normally, this is in pixels per meter. When rendering to a 2D texture, the units are pixels.

Font:setPixelDensity(pixelDensity)

Arguments

NameTypeDescription
pixelDensitynumberThe new pixel density.

Returns

Nothing


Reset the pixel density to the default (font:getRasterizer():getHeight()).

Font:setPixelDensity()

Arguments

None

Returns

Nothing

See also