W3cubDocs

/LÖVE

Font:setFallbacks

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

Sets the fallback fonts. When the Font doesn't contain a glyph, it will substitute the glyph from the next subsequent fallback Fonts. This is akin to setting a "font stack" in Cascading Style Sheets (CSS).

Function

Synopsis

Font:setFallbacks( fallbackfont1, ... )

Arguments

Font fallbackfont1
The first fallback Font to use.
Font ...
Additional fallback Fonts.

Returns

Nothing.

Notes

If this is called it should be before love.graphics.print, Font:getWrap, and other Font methods which use glyph positioning information are called.

Every fallback Font must be created from the same file type as the primary Font. For example, a Font created from a .ttf file can only use fallback Fonts that were created from .ttf files.

See Also

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Font:setFallbacks