Difference between revisions of "love.font.newBMFontRasterizer"
m (Added love.font.newImageRasterizer) |
m (Updated page **FIXME:There are other variants, but I can't determine it from source code (and I'm not sure, if these are correct)**) |
||
Line 4: | Line 4: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | rasterizer = love.font.newBMFontRasterizer( imageData, glyphs ) | + | rasterizer = love.font.newBMFontRasterizer( imageData, glyphs, DPIScale ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|ImageData|imageData|The image data containing the drawable pictures of font glyphs.}} | {{param|ImageData|imageData|The image data containing the drawable pictures of font glyphs.}} | ||
{{param|string|glyphs|The sequence of glyphs in the ImageData.}} | {{param|string|glyphs|The sequence of glyphs in the ImageData.}} | ||
+ | {{New feature|11.0| | ||
+ | {{param|number|DPIScale (1)|DPI scale.}} | ||
+ | }} | ||
=== Returns === | === Returns === | ||
{{param|Rasterizer|rasterizer|The rasterizer.}} | {{param|Rasterizer|rasterizer|The rasterizer.}} | ||
Line 15: | Line 18: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | rasterizer = love.font.newBMFontRasterizer( | + | rasterizer = love.font.newBMFontRasterizer( fileName, glyphs, DPIScale ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | + | {{param|string|fileName|The path to file containing the drawable pictures of font glyphs.}} | |
+ | {{param|string|glyphs|The sequence of glyphs in the ImageData.}} | ||
+ | {{New feature|11.0| | ||
+ | {{param|number|DPIScale (1)|DPI scale.}} | ||
+ | }} | ||
=== Returns === | === Returns === | ||
{{param|Rasterizer|rasterizer|The rasterizer.}} | {{param|Rasterizer|rasterizer|The rasterizer.}} |
Revision as of 10:59, 22 April 2020
Available since LÖVE 0.7.0 |
This function is not supported in earlier versions. |
Creates a new BMFont Rasterizer.
Contents
Function
Synopsis
rasterizer = love.font.newBMFontRasterizer( imageData, glyphs, DPIScale )
Arguments
ImageData imageData
- The image data containing the drawable pictures of font glyphs.
string glyphs
- The sequence of glyphs in the ImageData.
Available since LÖVE 11.0
number DPIScale (1)
- DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Synopsis
rasterizer = love.font.newBMFontRasterizer( fileName, glyphs, DPIScale )
Arguments
string fileName
- The path to file containing the drawable pictures of font glyphs.
string glyphs
- The sequence of glyphs in the ImageData.
Available since LÖVE 11.0
number DPIScale (1)
- DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
See Also
- love.font
- love.font.newRasterizer
- love.font.newTrueTypeRasterizer
- love.font.newImageRasterizer
- Rasterizer
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