Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 7 additions & 22 deletions modules/graphics/Graphics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2365,6 +2365,12 @@ return {
name = 'glyphs',
description = 'A string of the characters in the image in order from left to right.',
},
{
type = 'number',
name = 'extraspacing',
description = 'Additional spacing (positive or negative) to apply to each glyph in the Font.',
default = '0',
},
},
returns = {
{
Expand All @@ -2386,32 +2392,11 @@ return {
name = 'glyphs',
description = 'A string of the characters in the image in order from left to right.',
},
},
returns = {
{
type = 'Font',
name = 'font',
description = 'A Font object which can be used to draw text on screen.',
},
},
},
{
description = 'Instead of using this function, consider using a BMFont generator such as bmfont, littera, or bmGlyph with love.graphics.newFont. Because slime said it was better.',
arguments = {
{
type = 'string',
name = 'filename',
description = 'The filepath to the image file.',
},
{
type = 'string',
name = 'glyphs',
description = 'A string of the characters in the image in order from left to right.',
},
{
type = 'number',
name = 'extraspacing',
description = 'Additional spacing (positive or negative) to apply to each glyph in the Font.',
default = '0',
},
},
returns = {
Expand Down
Loading