Font

Defines the shape of characters than can be drawn onto the screen.

Constructors

love.graphics.newFontCreates a new Font.
love.graphics.newImageFontCreates a new Font by loading a specifically formatted image.Added since 0.2.0

Functions

Font:getAscentGets the ascent of the Font in pixels.Added since 0.9.0
Font:getBaselineGets the baseline of the Font in pixels.Added since 0.9.0
Font:getDescentGets the descent of the Font in pixels.Added since 0.9.0
Font:getFilterGets the filter mode for a font.Added since 0.9.0
Font:getHeightGets the height of the Font in pixels.
Font:getLineHeightGets the line height.
Font:getWidthDetermines the horizontal size a line of text needs.
Font:getWrapReturns how many lines text would be wrapped to.Added since 0.7.0
Font:hasGlyphsGets whether the Font can render a character or string.Added since 0.9.0
Font:setFilterSets the filter mode for a font.Added since 0.9.0
Font:setLineHeightSets the line height.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

See Also


Other Languages

Personal tools