Description
Subject of the issue
I'm attempting to add alternative font sizes to the HyperDisplay library.
Your workbench
The microcontroller is a SparkFun ESP32 Thing
The display is a SparkFun TFT LCD Breakout 1.8" screen with 128x160 pixels
Steps to reproduce
I've attempted to add an alternative font size to the hyperdisplay library, but I would appreciate some help. I began by adding the microview 8x16font.h bitmap from geekammo's repository (https://github.com/geekammo/MicroView-Arduino-Library/blob/master/font8x16.h). I copied the getCharInfo() method in hyperdisplay.cpp, and I'm attempting to rework the algorithm for the 8x16font.h, however, I'm running into some issues. When I try writing out the bitmap on graphing paper I end up with gibberish, and the size is still 5x7 unless I swap indi and indj here (I don't think this is a valid option):
if(values[indi] & (0x01 << indj))
From what I understand, the display does not support fonts with heights larger than eight pixels. Each character has to be split into two pieces that are displayed seperately with one below the other giving the illusion of a single character. I'm still running into issues though.
Here is the link to my modified code that I'll push to your repo once I've finished:
https://github.com/iangchristensen/SparkFun_HyperDisplay_Library/blob/master/SparkFun_HyperDisplay_Library/src/hyperdisplay.cpp
Expected behaviour
The HyperDisplay should generate a font that is 8x16.
Actual behaviour
Text continues to print in 5x7 and prints gibberish rather than the specified characters.