Day 3 – Creating a programming-friendly font

Started drawing the letters with rectangles instead of lines. It was quite challenging to make the joints look nice. The last stroke for “R” is a bit short now. I’ll improve it later.

The experimental codes has different drawing methods, like “drawBarGlyph”, “drawTriangleGlyph” etc. The new code uses “java.lang.reflect.*” package, which allows me to toggle between different methods by String. I wish I had used it in previous projects to avoid all the switch statements. Here’s an example on Stackoverflow. Using Reflection/Mirror is a very bad programming practice in general. But for Processing sketches, it’s perfect.

bar, bar variation and triangle drawing modes.

rectangle, rectangle variation and triangle drawing modes.

One response

Leave a Reply

Your email address will not be published. Required fields are marked *

For spam filtering purposes, please copy the number 5548 to the field below: