{{newin|[[0.8.0]]|080|type=function}}
Creates and sets a new [[Font]].
{{newobjectnotice}}
== Function ==
=== Synopsis ===
<source lang="lua">
font = love.graphics.setNewFont( size )
</source>
=== Arguments ===
{{param|number|size (12)|The size of the font.}}
=== Returns ===
{{param|Font|font|The new font.}}
== Function ==
=== Synopsis ===
<source lang="lua">
font = love.graphics.setNewFont( filename, size )
</source>
=== Arguments ===
{{param|string|filename|The path and name of the file with the font.}}
{{param|number|size (12)|The size of the font.}}
=== Returns ===
{{param|Font|font|The new font.}}
== Function ==
=== Synopsis ===
<source lang="lua">
font = love.graphics.setNewFont( file, size )
</source>
=== Arguments ===
{{param|File|file|A [[File]] with the font.}}
{{param|number|size (12)|The size of the font.}}
=== Returns ===
{{param|Font|font|The new font.}}
== Function ==
=== Synopsis ===
<source lang="lua">
font = love.graphics.setNewFont( data, size )
</source>
=== Arguments ===
{{param|Data|data|A [[Data]] with the font.}}
{{param|number|size (12)|The size of the font.}}
=== Returns ===
{{param|Font|font|The new font.}}
== Function ==
=== Synopsis ===
<source lang="lua">
font = love.graphics.setNewFont( rasterizer )
</source>
=== Arguments ===
{{param|Rasterizer|rasterizer|A rasterizer.}}
=== Returns ===
{{param|Font|font|The new font.}}
== See Also ==
* [[parent::love.graphics]]
* [[love.graphics.newFont]]
* [[love.graphics.setFont]]
[[Category:Functions]]
[[Sub-Category::Object Creation| ]]
{{#set:Description=Creates and sets a new [[Font]].}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|love.graphics.setNewFont}}