TFT_eSPI/Extensions
pteal 01179a6d9f
Fix for font anti aliasing in sprites
Currently, smooth fonts are antialiased differently depending on whether they are drawn directly on a TFT or drawn on a sprite and then pushed to the TFT.  In my opinion, the anti aliasing should be consistent, regardless of where the text is being drawn. 
 Digging into the libraries, I noticed that drawGlyph() in Sprite.cpp overrides drawGlyph() in Smooth_font.cpp.  For some reason, in Sprite.cpp, drawPixel() was only being called if the alpha value of the pixel was greater than 127.  Removing the "if" statement and calling drawPixel() regardless of the alpha value of that pixel, resolves the inconsistency and produces great looking text!
2018-09-27 16:36:23 -04:00
..
Button.cpp Add smooth (antialiased) fonts 2018-02-24 19:02:20 +00:00
Button.h Add smooth (antialiased) fonts 2018-02-24 19:02:20 +00:00
Smooth_font.cpp Add option for a different TFT read SPI frequency 2018-07-29 15:00:09 +01:00
Smooth_font.h Add smooth (antialiased) fonts 2018-02-24 19:02:20 +00:00
Sprite.cpp Fix for font anti aliasing in sprites 2018-09-27 16:36:23 -04:00
Sprite.h Add support for 1 bit per pixel in Sprite class 2018-03-26 01:02:23 +01:00
Touch.cpp Allow more settle time for raw values read from touch controller 2018-08-26 23:17:58 +01:00
Touch.h Add smooth (antialiased) fonts 2018-02-24 19:02:20 +00:00