14 Commits

Author SHA1 Message Date
Marco van Dijk
568054b986 Variable margins based on page number 2021-07-27 14:48:57 +02:00
Marco van Dijk
9992b7ac36 Added max pages 2021-07-27 14:18:30 +02:00
Marco van Dijk
72c4daa126 Fix selection of output types 2021-07-09 21:53:12 +02:00
Marco van Dijk
e32d66c10b Extra check for supported inputs
Added input for rawtxt (speedy input, but with assumptions, so it has to be generated by this program
Fix check for selected input extensions
2021-07-09 21:46:29 +02:00
Marco van Dijk
8d03f6d665 Added support for writing to txt and rawtxt (which is quick to parse as input)
Added config options for choosing which extensions to read and which to write to
2021-07-09 20:35:33 +02:00
Marco van Dijk
3305efd7d0 Set font size based on PPI
In combination with the dynamic up/down sizing to fit whitespace, we get pretty good output images
Also removed the check that we do not resize the font size that much
fixes #13
2021-07-09 17:40:28 +02:00
Marco van Dijk
3487dc14f2 Added final optimalisation to increase the font size as long as we do not require a new page by doing so 2021-07-09 17:29:41 +02:00
Marco van Dijk
88ef505d50 Added checks to stop resizing down if we are creating too much widespace or if the font has decreased too much 2021-07-09 17:04:17 +02:00
Marco van Dijk
bf0352a600 Added optimalisation to resize down to fit whitespace better
Also increased default font size, since we resize down if needed
A lower default font size will speed up the program
fixes #8
2021-07-09 16:20:11 +02:00
Marco van Dijk
0767b7c2eb Added a simple arranger, which arranges the sections on pages
Output2Img now simply writes all of the sections on a page below each other
2021-07-09 14:26:50 +02:00
Marco van Dijk
db9633a855 Added simple prerender functions to estimate seciton dimensions
Added width-overflow check. Program will downsize the fontSize down untill all lines are readable
Moved config options into the song object
Fixes #3
2021-07-09 14:26:49 +02:00
Marco van Dijk
e6a0e920af fixes #7
add config file, created if it does not exist
2021-07-08 00:46:54 +02:00
Marco van Dijk
5be0f83c0d fixes #9
Add comments to start of files and functions
2021-07-07 23:01:52 +02:00
Marco van Dijk
2e29859e1c Initial Commit of prototype 2021-07-07 18:38:45 +02:00