Lijmer / arduino-tvout

Automatically exported from code.google.com/p/arduino-tvout
0 stars 0 forks source link

Fix for bigfonts (bigger than 8 bits width) #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fonts with 32 bit width were not showing correctly
2. Problem was in the library TVoutPrint.Cpp
3. The bitmapfunction was not pointing to the right index due to the number of 
bits. 32 bits was point every 8 bits as index instead of shifting 32 = 4 times.

What is the expected output? What do you see instead?
The big fonts (16 bit or 32 bit of even 64 bits were showing wrong on screen 
due to the pointer. 

What version of the product are you using? On what operating system?
Beta 1.

Please provide any additional information below.
I have added an extra parameter to the fonts (parameter 4 = devider. With small 
fonts (lower than 8) the devider is equal to width of font. Otherwise it is 8.
This fixes the problem with the correction in TVoutPrint.cpp

Example of the 4x6 font and32x50 font and the TVoutPrint.cpp are attached
The 8x8 font is actually a SegmentFont of 32x50, to experiment with, I have for 
the experiment overwritten the original font. However I wanted to share this 
"fix"with you. It is more of a patch and I am shure a more robust fix can be 
made

Kind regards

Robert

Original issue reported on code.google.com by ttv...@gmail.com on 14 Jul 2014 at 4:45

Attachments: