Difference between revisions of "Font:getFilter"

(See Also: Added setFilter.)
 
(One intermediate revision by one other user not shown)
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 ===
 
<source lang="lua">
 
<source lang="lua">
min, mag = Font:getFilter( )
+
min, mag, anisotropy = Font:getFilter( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 11: Line 12:
 
{{param|FilterMode|min|Filter mode used when minifying the font.}}
 
{{param|FilterMode|min|Filter mode used when minifying the font.}}
 
{{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.}}
 +
 
== 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