Difference between revisions of "love.font.newTrueTypeRasterizer"
m (→See Also: Added love.font.newImageRasterizer) |
m (Updated page) |
||
Line 6: | Line 6: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | rasterizer = love.font.newTrueTypeRasterizer( size, hinting_mode ) | + | rasterizer = love.font.newTrueTypeRasterizer( size, hinting_mode, DPIScale ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number|size|The font size.}} | + | {{param|number|size (12)|The font size.}} |
− | {{param|HintingMode|hinting_mode|True Type hinting mode.}} | + | {{New feature|0.10.0| |
+ | {{param|HintingMode|hinting_mode ("normal")|True Type hinting mode.}} | ||
+ | }} | ||
+ | {{New feature|11.0| | ||
+ | {{param|number|DPIScale|The font DPI scale.}} | ||
+ | }} | ||
+ | === Returns === | ||
+ | {{param|Rasterizer|rasterizer|The rasterizer.}} | ||
+ | |||
+ | == Function == | ||
+ | Create a TrueTypeRasterizer with custom font. | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | rasterizer = love.font.newTrueTypeRasterizer( fileName, size, hinting_mode, DPIScale ) | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | {{param|string|fileName|Path to font file.}} | ||
+ | {{param|number|size (12)|The font size.}} | ||
+ | {{New feature|0.10.0| | ||
+ | {{param|HintingMode|hinting_mode ("normal")|True Type hinting mode.}} | ||
+ | }} | ||
+ | {{New feature|11.0| | ||
+ | {{param|number|DPIScale|The font DPI scale.}} | ||
+ | }} | ||
+ | === Returns === | ||
+ | {{param|Rasterizer|rasterizer|The rasterizer.}} | ||
+ | |||
+ | == Function == | ||
+ | Create a TrueTypeRasterizer with custom font. | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | rasterizer = love.font.newTrueTypeRasterizer( fileData, size, hinting_mode, DPIScale ) | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | {{param|FileData|fileData|File data containing font.}} | ||
+ | {{param|number|size (12)|The font size.}} | ||
+ | {{New feature|0.10.0| | ||
+ | {{param|HintingMode|hinting_mode ("normal")|True Type hinting mode.}} | ||
+ | }} | ||
+ | {{New feature|11.0| | ||
+ | {{param|number|DPIScale|The font DPI scale.}} | ||
+ | }} | ||
=== Returns === | === Returns === | ||
{{param|Rasterizer|rasterizer|The rasterizer.}} | {{param|Rasterizer|rasterizer|The rasterizer.}} |
Revision as of 10:50, 22 April 2020
Available since LÖVE 0.7.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_mode, DPIScale )
Arguments
number size (12)
- The font size.
Available since LÖVE 0.10.0
HintingMode hinting_mode ("normal")
- True Type hinting mode.
Available since LÖVE 11.0
number DPIScale
- The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Create a TrueTypeRasterizer with custom font.
Synopsis
rasterizer = love.font.newTrueTypeRasterizer( fileName, size, hinting_mode, DPIScale )
Arguments
Available since LÖVE 0.10.0
HintingMode hinting_mode ("normal")
- True Type hinting mode.
Available since LÖVE 11.0
number DPIScale
- The font DPI scale.
Returns
Rasterizer rasterizer
- The rasterizer.
Function
Create a TrueTypeRasterizer with custom font.
Synopsis
rasterizer = love.font.newTrueTypeRasterizer( fileData, size, hinting_mode, DPIScale )
Arguments
Available since LÖVE 0.10.0
HintingMode hinting_mode ("normal")
- True Type hinting mode.
Available since LÖVE 11.0
number DPIScale
- 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