hholzgra / ocitysmap

Fork of ocitysmap repository at savannah.nongnu.org
Other
35 stars 12 forks source link

Rethink minimal paper size calculation #46

Open hholzgra opened 2 years ago

hholzgra commented 2 years ago

Right now minimal "best fit" paper size is calculated based on DEFAULT_SCALE and MIN_PAPER_WIDTH / MIN_PAPER_SIZE config settings only.

This can be too small if a layout with index is selected, so different minimal width / height settings are needed.

The current code also does not take landscape vs. portrait into account. This so far wasn't much of an issue as min width and height were the same by default anyway, but this also needs improvement