Difference between revisions of "love.font.newImageRasterizer"
(Some raw info about it (from love source code) because it seems not to be documented) |
m (love.font.newImageRasterizer didn't exist in 0.9 as far as I can tell) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[0. | + | {{newin|[[0.10.0]]|100|type=function}} |
Creates a new Image Rasterizer. | Creates a new Image Rasterizer. | ||
Line 6: | Line 6: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | rasterizer = love.font.newImageRasterizer( imageData, glyphs, extraSpacing, | + | rasterizer = love.font.newImageRasterizer( imageData, glyphs, extraSpacing, dpiscale ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
Line 12: | Line 12: | ||
{{param|string|glyphs|String containing font glyphs.}} | {{param|string|glyphs|String containing font glyphs.}} | ||
{{param|number|extraSpacing (0)|Font extra spacing.}} | {{param|number|extraSpacing (0)|Font extra spacing.}} | ||
− | {{param|number| | + | {{New feature|11.0| |
+ | {{param|number|dpiscale (1)|Font DPI scale.}} | ||
+ | }} | ||
=== Returns === | === Returns === | ||
{{param|Rasterizer|rasterizer|The rasterizer.}} | {{param|Rasterizer|rasterizer|The rasterizer.}} |
Latest revision as of 22:42, 25 January 2023
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Creates a new Image Rasterizer.
Function
Create an ImageRasterizer from the image data.
Synopsis
rasterizer = love.font.newImageRasterizer( imageData, glyphs, extraSpacing, dpiscale )
Arguments
ImageData imageData
- Font image data.
string glyphs
- String containing font glyphs.
number extraSpacing (0)
- Font extra spacing.
Available since LÖVE 11.0
number dpiscale (1)
- Font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
See Also
- love.font
- love.font.newRasterizer
- love.font.newBMFontRasterizer
- love.font.newTrueTypeRasterizer
- 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