Skip to content

Fractional font scaling

Compare
Choose a tag to compare
@bitbank2 bitbank2 released this 20 Jun 14:11
· 142 commits to master since this release

This release includes a few fixes for the menu code and adds the initial implementation of fractional font scaling for the built-in fixed spaced fonts. This feature is only available on the normal and small sized font (for now), but allows you to scale them larger or smaller by any amount. The fractional size is passed as two unsigned 16-bit integers (width and height scaling are separate) where the value 256 equals 1:1. So, if you would like to draw the normal font at 2.5x size, then you would pass the fractions 256x2.5 -> 640 to both the x and y scale values.