ctrl-+ and ctrl-- to adjust font size

[?]
May 17, 2022, 6:01 AM
V5TP27FPD6GPATHPABRW2FKP7BIKY53KL47UVEU5DF4WXEZF7CKAC

Dependencies

  • [2] HDCVGN6G save each line's y coordinate, whether it's a drawing or not
  • [3] 2INHXC3K position cursor by clicking on text
  • [4] UTF73CBL reorg
  • [5] RJGZD4IN binary search to most natural up/down with proportional fonts
  • [6] IFGAJAF7 add a level of indirection to vertices of shapes
  • [7] HJ3PM2VT .
  • [8] OTIBCAUJ love2d scaffold
  • [9] KHFU5NFD bugfix: up/down across drawings
  • [10] JCSLDGAH beginnings of support for multiple shapes
  • [11] ZUOL7X6V move
  • [12] QU7NHFOV show cursor
  • [13] 4NDYV4WD fix 2 bugs in line selection
  • [14] 3CS5KKCI up/down cursor movement
  • [15] 7RN3AETY bugfix: text sometimes getting colored like drawing borders
  • [16] VVXVV2D2 change data model; text can now have metadata
  • [17] ZD63LJ2T bugfix: keep the click to create a new drawing from creating a new shape in the drawing
  • [18] XX7G2FFJ intermingle freehand line drawings with text
  • [*] JVRL5TWL store device-independent coordinates inside drawings
  • [*] YKRF5V3Z starting to load/save
  • [*] JS6JSYOT online contextual help

Change contents

  • edit in main.lua at line 55
    [20.313]
    [21.3]
    zoom = 1.5
  • replacement in main.lua at line 93
    [5.36][5.59:72](),[5.370][5.59:72]()
    y = y+25
    [5.36]
    [2.1]
    y = y+15*zoom
  • replacement in main.lua at line 162
    [5.38][5.1249:1294](),[5.73][5.1249:1294](),[5.546][5.1249:1294](),[5.1249][5.1249:1294]()
    love.graphics.draw(text, 25,y, 0, 1.5)
    [5.546]
    [5.1]
    love.graphics.draw(text, 25,y, 0, zoom)
  • replacement in main.lua at line 205
    [3.229][3.229:280]()
    if x >= 16 and y >= line.y and y < y+25 then
    [3.229]
    [3.280]
    if x >= 16 and y >= line.y and y < y+15*zoom then
  • edit in main.lua at line 600
    [5.921]
    [4.656]
    elseif chord == 'C-=' then
    zoom = zoom+0.5
    elseif chord == 'C--' then
    zoom = zoom-0.5
  • replacement in main.lua at line 747
    [5.739][3.616:662]()
    return 25+text_before_cursor:getWidth()*1.5
    [5.739]
    [5.778]
    return 25+text_before_cursor:getWidth()*zoom
  • edit in main.lua at line 1098
    [22.1988]
    [22.1988]
    love.graphics.print("* Press 'ctrl+=' or 'ctrl+-' to zoom in or out", 16+30,y)
    y = y+15