Difference between revisions of "Font:setFallbacks"
(Created page) |
(Fix some of the sentences structure.) |
||
Line 1: | Line 1: | ||
{{newin|[[0.10.0]]|100|type=function}} | {{newin|[[0.10.0]]|100|type=function}} | ||
− | Sets | + | Sets the fallback fonts. When the Font doesn't contain a glyph, it will substitute glyphs from the next subsequent fallbacks. This is akin to setting a "font stack" in Cascading Style Sheets (CSS.) |
+ | |||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 14: | Line 15: | ||
If this is called it should be before [[love.graphics.print]], [[Font:getWrap]], and other Font methods which use glyph positioning information are called. | 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 | + | 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 == | == See Also == | ||
* [[parent::Font]] | * [[parent::Font]] |
Revision as of 07:36, 20 January 2016
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 glyphs from the next subsequent fallbacks. This is akin to setting a "font stack" in Cascading Style Sheets (CSS.)
Function
Synopsis
Font:setFallbacks( fallbackfont1, ... )
Arguments
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
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info