Difference between revisions of "love.font.newImageRasterizer"
(Some raw info about it (from love source code) because it seems not to be documented) |
m (DPIScale since 11.0) |
||
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.}} | ||
+ | {{New feature|11.0| | ||
{{param|number|DPIScale (1)|Font DPI scale.}} | {{param|number|DPIScale (1)|Font DPI scale.}} | ||
+ | }} | ||
=== Returns === | === Returns === | ||
{{param|Rasterizer|rasterizer|The rasterizer.}} | {{param|Rasterizer|rasterizer|The rasterizer.}} |
Revision as of 11:01, 22 April 2020
Available since LÖVE 0.7.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