Difference between revisions of "Font:getFilter"

m (Added anisotropy return value)
(See Also: Added setFilter.)
 
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
 
Gets the filter mode for a font.
 
Gets the filter mode for a font.
 +
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 12: Line 13:
 
{{param|FilterMode|mag|Filter mode used when magnifying the font.}}
 
{{param|FilterMode|mag|Filter mode used when magnifying the font.}}
 
{{param|number|anisotropy|Maximum amount of anisotropic filtering used.}}
 
{{param|number|anisotropy|Maximum amount of anisotropic filtering used.}}
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::Font]]
 
* [[parent::Font]]
 +
* [[Font:setFilter]]
 
* [[FilterMode]]
 
* [[FilterMode]]
 +
 +
== Other Languages ==
 +
{{i18n|Font:getFilter}}
 +
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Gets the filter mode for a font.}}
 
{{#set:Description=Gets the filter mode for a font.}}
== Other Languages ==
 
{{i18n|Font:getFilter}}
 

Latest revision as of 05:56, 31 August 2022

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets the filter mode for a font.

Function

Synopsis

min, mag, anisotropy = Font:getFilter( )

Arguments

None.

Returns

FilterMode min
Filter mode used when minifying the font.
FilterMode mag
Filter mode used when magnifying the font.
number anisotropy
Maximum amount of anisotropic filtering used.

See Also

Other Languages