love.font.newTrueTypeRasterizer
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Creates a new TrueType Rasterizer.
Contents
Function
Create a TrueTypeRasterizer with the default font.
Synopsis
rasterizer = love.font.newTrueTypeRasterizer( size, hinting, dpiscale )
Arguments
number size (12)
- The font size.
HintingMode hinting ("normal")
- True Type hinting mode.
Available since LÖVE 11.0
number dpiscale (love.window.getDPIScale())
- The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Create a TrueTypeRasterizer with custom font.
Synopsis
rasterizer = love.font.newTrueTypeRasterizer( fileName, size, hinting, dpiscale )
Arguments
string fileName
- Path to font file.
number size (12)
- The font size.
HintingMode hinting ("normal")
- True Type hinting mode.
Available since LÖVE 11.0
number dpiscale (love.window.getDPIScale())
- The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Create a TrueTypeRasterizer with custom font.
Synopsis
rasterizer = love.font.newTrueTypeRasterizer( fileData, size, hinting, dpiscale )
Arguments
FileData fileData
- File data containing font.
number size (12)
- The font size.
HintingMode hinting ("normal")
- True Type hinting mode.
Available since LÖVE 11.0
number dpiscale (love.window.getDPIScale())
- The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
See Also
- love.font
- love.font.newRasterizer
- love.font.newBMFontRasterizer
- 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