Difference between revisions of "Font:getFilter"

m (Added anisotropy return value)
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
min, mag = Font:getFilter( )
+
min, mag, anisotropy = Font:getFilter( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 11: Line 11:
 
{{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]]

Revision as of 03:22, 8 August 2013

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