vedderb / vesc_express

The source code for the VESC Express
GNU General Public License v3.0
39 stars 31 forks source link

Fix font rendering bug #6

Closed laxsjo closed 1 year ago

laxsjo commented 1 year ago

Fixed a rounding inconsistency with how the character byte length was calculated in the firmware and the VESC tool font generator.

When the font character width and height didn't multiply to a multiple of 8, the firmware code rounded the total size down to the nearest lower byte, skipping a few bits. The font generator in VESC tool didn't round down, and instead correctly rounded up to the nearest higher byte count. This caused characters that were farther in to the font map to get progressively more shifted out of place.