From e52457435a9bb8cde8f758c21398f9e5c920d69c Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 24 Sep 2016 09:09:52 +0100 Subject: [PATCH] Updated doc/api.md for Font changes --- doc/api.md | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/doc/api.md b/doc/api.md index e92d6dc..db91253 100644 --- a/doc/api.md +++ b/doc/api.md @@ -219,25 +219,12 @@ Returns the position (`x`, `y`) and dimensions (`width`, `height`) of the quad, A font used by `love.graphics.print()`. The current font can be set using the `love.graphics.setFont()` function. -##### Font:getDimensions(text) -Returns the width and height in pixels which the provided `text` string would -take to render. +##### Font:getWidth(text) +Returns the width in pixels that the `text` string would take when printed using +this font. -##### Font:getWidth([text]) -Returns the width in pixels which the provided `text` string would take to -render. If no `text` argument is provided, the width of a single character is -returned. - -##### Font:getHeight([text]) -Returns the height in pixels which the provided `text` string would take to -render. If no `text` argument is provided, the height of a single line is -returned. - -##### Font:setCharSpacing(n) -Sets the size of the gap between each character of text in pixels to `n`. - -##### Font:setLineSpacing(n) -Sets the size of the gap between each character of text in pixels to `n`. +##### Font:getHeight() +Returns the height of the font in pixels. ## Callbacks