{{newin|[[0.10.0]]|100|type=function}}
Replaces the [[Font]] used with the text.

{{notice|This function can be slow if it is called repeatedly, such as from [[love.update]] or [[love.draw]]. Create multiple Text objects with different Fonts if you need to rapidly switch fonts.}}

== Function ==
=== Synopsis ===
<source lang="lua">
Text:setFont( font )
</source>
=== Arguments ===
{{param|Font|font|The new font to use with this Text object.}}
=== Returns ===
Nothing.

== See Also ==
* [[parent::Text]]
* [[Text:getFont]]
[[Category:Functions]]
{{#set:Description=Replaces the [[Font]] used with the text.}}
== Other Languages ==
{{i18n|Text:setFont}}