Next / Previous / Contents / Shipman's homepage


The ratio of the monospaced font's height to its width, measured at 5:3 for Vera Sans Mono. We use 1.66 to give a bit of leeway. To make this script work for multiple fonts, either add logic to read the font metrics, or add a command line argument so the user can specify this value.

FONT_ASPECT = Decimal('1.66')