clean up the setFont gotcha

akkartik
Dec 30, 2023, 12:25 AM
7SJHYHMBJOAFAGEMIIG2Z4FZAPLNLSF5RHZ4ZZ2LKFZENOOARKRQC

Dependencies

  • [2] IPMYE6WT establish a fairly fundamental invariant
  • [3] PBKJ2HLD document a gotcha
  • [4] 5OCELN37 bugfix in output editor wrapping
  • [5] NVTUHXC4 maintain the initial font size in a global
  • [6] HVXZLNCC send errors from event handlers to output editor
  • [7] I52S4E5F running `print` now appends to output editor
  • [8] 7D7J5J4X append errors to output buffer
  • [9] H5UZI3YN editor documentation
  • [10] TOKSRJMD show how to load lines in editor
  • [11] YK5FRJWH print to output buffer in all callbacks
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] TGHAJBES use line cache for drawings as well
  • [*] MZ3DMYPD start sketching out a scrollbar
  • [*] N2NUGNN4 include a brief reference enabling many useful apps

Change contents

  • edit in text.lua at line 948
    [2.278]
    [14.1613]
    love.graphics.setFont(State.font)
  • edit in text.lua at line 962
    [15.663]
    [15.663]
    love.graphics.setFont(State.font)
  • edit in text.lua at line 984
    [15.1468]
    [14.1715]
    love.graphics.setFont(State.font)
  • replacement in reference.md at line 256
    [5.241][3.0:104]()
    `state.lines`. (Gotcha: Don't forget to `love.graphics.setFont` the right
    font before you call it.)
    [5.241]
    [5.1653]
    `state.lines`.
  • replacement in reference.md at line 259
    [5.307][3.105:151]()
    on font height. (Gotcha: but not the font.)
    [5.307]
    [5.325]
    on font height.
  • edit in 0102-send_errors_to_output at line 6
    [5.233][4.0:29]()
    love.graphics.setFont(Font)
  • edit in 0050-print_to_output at line 5
    [5.1566][4.30:59]()
    love.graphics.setFont(Font)