That is working correctly. You could see it better if you draw a large gradient to the screen - interpolating between two bright colors should not have darker colors in the middle.
If you want to fix the font appearing too thin, you want to to apply non-linearity to the mixing factor instead.
doing some more work to get a handle on this code, it's a bit complex...
Am seeing that for VGA with buffer in HUB Ram, one has to be careful about how many fonts you have as they add up and the VGA buffer takes up a lot of space:
//List of included fonts
#include "DejaVuSans12.c" // 7,636 bytes
#include "DejaVuSans12bw.c" // 5,132 bytes
#include "DejaVuSerif16.c" // 10,092 bytes
#include "DejaVuSerif32.c" // 18,567 bytes
#include "fixed_5x8.c" // 2,536 bytes
#include "fixed_7x14.c" // 5,156 bytes
#include "fixed_10x20.c" // 5,700 bytes
#include "DejaVuSans32.c" // 16,780 bytes
#include "DejaVuSans12bw_bwfont.c" // 4,916 bytes
//Showfonts.c compiles to 376544 bytes with no fonts, most is bitmap buffer at 302 kB, so code is ~68 kB
// .. compiles to 437928 bytes with all the above fonts
Comments
Thinking looks better without the gamma... Maybe McuFont somehow included it already?
That is working correctly. You could see it better if you draw a large gradient to the screen - interpolating between two bright colors should not have darker colors in the middle.
If you want to fix the font appearing too thin, you want to to apply non-linearity to the mixing factor instead.
got the encoder compiled in Ubuntu. Just had to do "sudo apt-get install cxxtest" for whatever that is...
Was contemplating moving fonts to PSRAM, but figured out that even the largest size one is only ~15 kB. So, not worth it.
doing some more work to get a handle on this code, it's a bit complex...
Am seeing that for VGA with buffer in HUB Ram, one has to be careful about how many fonts you have as they add up and the VGA buffer takes up a lot of space:
Here's example code that shows all the fonts listed in previous post on VGA monitor.
Also, an example screenshot.
Think should work on any board with eval equivalent VGA adapter on basepin 8.
Basepin can be changed in Platform.h
Main file is ShowFonts.c
Made the zip using FlexProp GUI...
Learned a new preprocessor trick from this code...
It automatically creates a pointer list of available fonts like this:
This is in the main header:
Then, each font's code file has this:
I'll have to remember this approach, seems useful for GUI applications too...