tinygo-org / tinyfont

Text library for TinyGo displays
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
49 stars 12 forks source link

Refactor rotation process #34

Closed sago35 closed 2 years ago

sago35 commented 2 years ago

Before the fix, each function had to implement its own code for rotation. In this PR, the rotation process is unified by defining a RotatedDisplay.

This change is useful when implementing colored emoji. You no longer need to be aware of the rotation direction when drawing special glyphs.

sago35 commented 2 years ago

Now ready for review.

deadprogram commented 2 years ago

Good idea @sago35 thanks for doing this. Now merging.