freetronics / DMD2

Beta release of a new Dot Matrix Display Arduino library
http://forum.freetronics.com/viewtopic.php?f=26&t=5893
GNU General Public License v3.0
81 stars 71 forks source link

Override of font on drawChar doesn't change font away from base #2

Closed Bwooce closed 10 years ago

Bwooce commented 10 years ago

I need to look into the code to see why, but putting my 7x15 font in the drawChar parameters (after the inverse) still resulted in it using the base set 8x16 fontset. Or at least the widths, it's hard to tell them apart :-)

drawString may also be affected, it's not clear.

Bwooce commented 10 years ago

User error - I wasn't specifying the font on my charWidth calls..

projectgus commented 10 years ago

Good to hear you figured it out.

I'm not sure about whether that override is worth keeping in the API or not. Perhaps just calling DMD.selectFont() each time to change the default font is less error prone?

Angus