try to maintain a reasonable line width
[?]
Jun 5, 2022, 3:06 AM
AJB4LFRBMIRBEDWJ3OW7GQIMD2BZBVQ62GH4TE2FISWZKSAHRF4QCDependencies
- [2]
PESSMQBJno, make sure to compute line width after screen dimensions - [3]
R6GUSTBYdefault font size and line-height - [4]
W4UVZETR2 regressions: - [5]
AD34IX2Zcouple more tests - [6]
ESETRNLBbugfix: printing the first part of a line at the bottom made it seem non-wrapping - [7]
QCQHLMSTalways have a filename - [8]
2L4DL7PGgo through App in a couple more places - [9]
H22OAXWEcouple of TODOs - [10]
YKRF5V3Zstarting to load/save - [11]
XSLCFVFH. - [12]
PGZJ6NATensure Filename is writable when opened outside a terminal - [13]
HOSPP2ANcrisp font rendering - [14]
AVQ5MC5Dfinish uppercasing all globals - [15]
Z4XRNDTRfind text - [16]
AH744RFRshow when we're naming a point - [17]
IZZVOCLBconfirm that we have access to all of the love API - [18]
GQSGEYSM. - [19]
OTIBCAUJlove2d scaffold - [20]
NQWWTGXRswitch undo/redo to ctrl- hotkeys - [21]
AVTNUQYRbasic test-enabled framework - [22]
YTSPVDZHfirst successful pagedown test, first bug found by test - [*]
Z4KNS42Nto open a file without a terminal, drag it on! - [*]
BLWAYPKVextract a module
Change contents
- edit in main.lua at line 95
-- maximum width available to either text or drawings, in pixelsLine_width = math.floor(App.screen.width/2/40)*40 - replacement in main.lua at line 96
Font_height = 20love.graphics.setFont(love.graphics.newFont(Font_height))Line_height = 26initialize_font_settings(20) - edit in main.lua at line 112
function initialize_font_settings(font_height)Font_height = font_heightlove.graphics.setFont(love.graphics.newFont(Font_height))Line_height = math.floor(font_height*1.3)-- maximum width available to either text or drawings, in pixelsEm = App.newText(love.graphics.getFont(), 'm')-- readable text width is 50-75 charsLine_width = math.min(40*App.width(Em), App.screen.width-50)end - replacement in main.lua at line 284
Font_height = Font_height+2love.graphics.setFont(love.graphics.newFont(Font_height))Line_height = math.floor(Font_height*1.3)initialize_font_settings(Font_height+2) - replacement in main.lua at line 287
Font_height = Font_height-2love.graphics.setFont(love.graphics.newFont(Font_height))initialize_font_settings(Font_height-2) - edit in main.lua at line 289
Line_height = math.floor(Font_height*1.3) - replacement in main.lua at line 290
Font_height = 20love.graphics.setFont(love.graphics.newFont(Font_height))initialize_font_settings(20) - edit in main.lua at line 292
Line_height = 26 - replacement in drawing.lua at line 59
name_text = App.newText(love.graphics.getFont(), 'm') -- 1emname_text = Em