sumotoy / RA8875

A library for RAiO RA8875 display driver for Teensy3.x or LC/Arduino's/Energia/Spark
GNU General Public License v3.0
79 stars 55 forks source link

Question/Help with Converted Fonts #117

Open sandalhat opened 7 years ago

sandalhat commented 7 years ago

I am using 0.79b11 and I'm trying to figure out the best approach to a decent looking large font. I followed your Wiki page to using the external font converter and it's working, but the fonts look pretty blocky since there isn't any anti-aliasing. I've read a lot of your forum posts and can kind of understand that rendering fonts turns out to be a problem with the RA8875. If what is present right now is the best that I can do I will keep using it this way, but I want to ask because of something on the Wiki:

"The program let you easy modify glyphs by simple clicking with mouse, left(add),right(delete), You will notice that some font it's antialiased, well, during conversion the grayscale will gone but it uses the parameter inside conversion dialog (threshold). You can avoid this by editing your font manually since the threshold works only to get rid of grayscale"

This is on the font conversion page. I guess I just don't understand it because it sounds like it's telling me that I can actually achieve anti-aliased fonts with your LPGO algorithm, which sounds ideal, but I can't figure out how to do it.

Furthermore, in the image that goes with the instruction to use the Font->Optimize Weight, it looks like there is actually anti-aliasing on the font pictured. Not to mention I can't find an "Optimize Weight" option in the lcd-converter program, even if I roll back to the latest beta that was published when that Wiki page was posted. If this feature is key, could you give any more information about the version of the converter you were using when you made the guide?

I completely understand that the font converter is not your project and I'm not complaining about anything, I just don't quite understand if I'm able to get anti-aliasing or not and if I am, how to go about it.

A somewhat separate issue is that I noticed some forum mentions of using circles to render fonts and that you got good results. I also noticed a mention on the LPGO page to a private method that sounds like the same thing. If this is a viable alternative, do you have any plans to release the method in the future?

sandalhat commented 7 years ago

I have to admit I initially thought of tft.setFontScale() as multiplicative, i.e. starting at 1. Fonts look much better with the "native" size that you get by tft.setFontScale(0); but I am still curious about the above question, because with AA things will look even that much better if it's possible!