about summary refs log tree commit diff stats
path: root/reference.md
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-12-29 11:52:28 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-12-29 11:52:28 -0800
commitbd2179d8aa37e6088f20faae08fd6564a33e18c1 (patch)
tree9775eb972fa69ca272f681a4186ce508d9c4c494 /reference.md
parent6601c9fad87fb8b06df442c964486c8050fec3ac (diff)
downloadlines.love-bd2179d8aa37e6088f20faae08fd6564a33e18c1.tar.gz
bugfix
scenario: run without config file, quit, run again
expected: font size remains the same on second run

Before this commit it was increasing on each run.
It turns out the font height that you pass into love.graphics.newFont()
is not the result of font:getHeight().
Diffstat (limited to 'reference.md')
-rw-r--r--reference.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/reference.md b/reference.md
index 84f6f0e..df08f28 100644
--- a/reference.md
+++ b/reference.md
@@ -190,8 +190,8 @@ There's much more I could include here; check out [the LÖVE manual](https://lov
 The text-editor widget includes extremely thorough automated tests to give you
 early warning if you break something.
 
-* `state = edit.initialize_state(top, left, right, font, line_height)` --
-  returns an object that can be used to render an interactive editor widget
+* `state = edit.initialize_state(top, left, right, font, font_height, line_height)`
+  -- returns an object that can be used to render an interactive editor widget
   for text and line drawings starting at `y=top` on the app window, between
   `x=left` and `x=right`. Wraps long lines at word boundaries where possible,
   or in the middle of words (no hyphenation yet) when it must.