Close

3) The font

A project log for Scribing Robot

Writing on a whiteboard with stepper motors

f4hdkf4hdk 04/22/2018 at 13:220 Comments

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 :

3 : line down.

Starts from current position and moves to position X, Y, with pen down.

Arguments :

4 : arc/circle.

Writes a circle or arc

Arguments :

5 : end of the character

Arguments :

6 : point at position

Arguments:


The font is designed by hand. 

Discussions