{{newin|[[11.0]]|110|type=method}}
Gets the DPI scale factor of the Font.

The DPI scale factor represents relative pixel density. A DPI scale factor of 2 means the font's glyphs have twice the pixel density in each dimension (4 times as many pixels in the same area) compared to a font with a DPI scale factor of 1.

The font size of TrueType fonts is scaled internally by the font's specified DPI scale factor. By default, LÖVE uses the [[love.graphics.getDPIScale|screen's DPI scale factor]] when creating TrueType fonts.
== Function ==
=== Synopsis ===
<source lang="lua">
dpiscale = Font:getDPIScale( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|dpiscale|The DPI scale factor of the Font.}}
== See Also ==
* [[parent::Font]]
* [[love.graphics.newFont]]
* [[love.graphics.getDPIScale]]
* [[Config Files]]
[[Category:Functions]]
{{#set:Description=Gets the DPI scale factor of the Font.}}
== Other Languages ==
{{i18n|Font:getDPIScale}}