Close

Reduced Font Size

A project log for 1K LCD Tinyfont

A tiny pixel font rendered to an LCD display, in under 1K program space.

ZachZach 12/30/2016 at 03:071 Comment

A quick tip from a community member (hat tip Yann Guidon) saved some space. Since each character of the font begins with the character width, and each character is one-byte tall, the null terminator is redundant. We can infer this information already from the width.

This reduced the font size about 90 bytes, and saved the program about 70 (additional code to process this change). Will do some code cleanup to try to realize some more savings.

Discussions

Yann Guidon / YGDES wrote 12/30/2016 at 03:32 point

Damnit ! What could you even do with so much/little freed code space ?...

I, for one, will stay tuned :-D

  Are you sure? yes | no