Difference between revisions of "ImageFontFormat"
m (included link to other languages) |
(Link to tutorial) |
||
Line 5: | Line 5: | ||
The width of the separator areas affect the spacing of the font glyphs. It is possible to have more areas in the image than are required for the font in the [[love.graphics.newImageFont]]() call. The extra areas are ignored. | The width of the separator areas affect the spacing of the font glyphs. It is possible to have more areas in the image than are required for the font in the [[love.graphics.newImageFont]]() call. The extra areas are ignored. | ||
− | TODO: | + | See: [[Tutorial:Fonts and Text]] |
+ | |||
+ | TODO: Upload a PoT sample image that works on every computer. | ||
== Other Languages == | == Other Languages == | ||
{{i18n|ImageFontFormat}} | {{i18n|ImageFontFormat}} |
Revision as of 16:19, 14 April 2013
The imagefont file is an image file in a format that Löve can load. It can contain transparent pixels, so a PNG file is preferable, and it also needs to contain spacer color that will separate the different font glyphs.
The upper left pixel of the image file is always taken to be the spacer color. All columns that have this color as their uppermost pixel are interpreted as separators of font glyphs. The areas between these separators are interpreted as the actual font glyphs.
The width of the separator areas affect the spacing of the font glyphs. It is possible to have more areas in the image than are required for the font in the love.graphics.newImageFont() call. The extra areas are ignored.
TODO: Upload a PoT sample image that works on every computer.
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