The font is a custom vector font. It is designed by myself.
Each character is made of one or several segments and/or arcs. The font is directly inside the source code. The code is available at the start page. It should be easily ported to another microcontroller.
The font definition format is also specific. Each character is defined with a series of one or several instructions. Each instruction can be followed by 1 or several parameter bytes.
X and Y positions refer to a 16x16 grid which contains the character.
Instruction list:
2 : line up.
Starts from current position and moves to position X, Y, with pen up
Arguments :
- X target position
- Y target position
3 : line down.
Starts from current position and moves to position X, Y, with pen down.
Arguments :
- X target position
- Y target position
4 : arc/circle.
Writes a circle or arc
Arguments :
- X and Y : position of the circle center
- Circle radius
- Angle at the beginning
- angle at the end
5 : end of the character
Arguments :
- width of the character.
6 : point at position
Arguments:
- X
- Y
The font is designed by hand.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.