Difference between revisions of "love.font"

m (Added enums (PixelFormat for GlyphData:getFormat()) and deprecation support)
Line 11: Line 11:
 
| ?PrettySince
 
| ?PrettySince
 
| ?PrettyRemoved
 
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
 
== Functions ==
 
== Functions ==
Line 22: Line 23:
 
| ?PrettySince
 
| ?PrettySince
 
| ?PrettyRemoved
 
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 +
}}
 +
== Enums ==
 +
{{#ask: [[Category:Enums]] [[parent::love.font]] [[Concept:Current]]
 +
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 +
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
 
[[Category:Modules]]
 
[[Category:Modules]]

Revision as of 10:02, 22 April 2020

Available since LÖVE 0.7.0
This module is not supported in earlier versions.

Allows you to work with fonts.

Types

FontData A FontData represents a font. Added since 0.7.0 Removed in 0.8.0
GlyphData A GlyphData represents a drawable symbol of a font. Added since 0.7.0
Rasterizer A Rasterizer represents font data and glyphs. Added since 0.7.0

Functions

love.font.newBMFontRasterizer Creates a new BMFont Rasterizer. Added since 0.10.0
love.font.newFontData Creates a new FontData. Added since 0.7.0 Removed in 0.8.0
love.font.newGlyphData Creates a new GlyphData. Added since 0.7.0
love.font.newImageRasterizer Creates a new Image Rasterizer. Added since 0.10.0
love.font.newRasterizer Creates a new Rasterizer. Added since 0.7.0
love.font.newTrueTypeRasterizer Creates a new TrueType Rasterizer. Added since 0.10.0

Enums

HintingMode True Type hinting mode. Added since 0.10.0
PixelFormat Pixel formats for Textures, ImageData, and CompressedImageData. Added since 11.0

See Also

Other Languages