Difference between revisions of "love.font.newBMFontRasterizer"

(Created page with "{{newin|0.7.0|070|type=function}} Creates a new BMFontRasterizer. == Function == === Synopsis === <source lang="lua"> rasterizer = love.font.newBMFontRasterizer( imageData...")
 
m (love.font.newBMFontRasterizer was added in 0.10.0)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{newin|[[0.7.0]]|070|type=function}}
+
{{newin|[[0.10.0]]|100|type=function}}
Creates a new BMFontRasterizer.
+
Creates a new BMFont Rasterizer.
 
== Function ==
 
== Function ==
 
=== 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|BMFontRasterizer|rasterizer|The rasterizer.}}
+
{{param|Rasterizer|rasterizer|The rasterizer.}}
  
 
== Function ==
 
== Function ==
 
=== 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|BMFontRasterizer|rasterizer|The rasterizer.}}
+
{{param|Rasterizer|rasterizer|The rasterizer.}}
  
 
== See Also ==
 
== See Also ==
Line 26: Line 33:
 
* [[love.font.newRasterizer]]
 
* [[love.font.newRasterizer]]
 
* [[love.font.newTrueTypeRasterizer]]
 
* [[love.font.newTrueTypeRasterizer]]
 +
* [[love.font.newImageRasterizer]]
 
* [[Constructs::Rasterizer]]
 
* [[Constructs::Rasterizer]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Creates a new BMFontRasterizer.}}
+
{{#set:Description=Creates a new BMFont Rasterizer.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.font.newBMFontRasterizer}}
 
{{i18n|love.font.newBMFontRasterizer}}

Latest revision as of 22:32, 25 January 2023

Available since LÖVE 0.10.0
This function is not supported in earlier versions.

Creates a new BMFont Rasterizer.

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

Other Languages