This is a continuation of this issue .
I am working on a low-level C application where I need to draw text. I decided to save the font that I want to use as an array (black and white, each char 128x256, maybe), then I would reduce it to the sizes I need with some algorithm (in grayscale, so I can do some rough smoothing font).
Note: this is a toy project, please ignore things like doing calculations at runtime or not.
Question: which algorithm?
I looked 2xSaI, but it's pretty complicated. I would like for me to be able to read the description and develop the code myself (I start and code in C / C ++ a little less than a year).
Suggestions, anyone?
Thank you for your time!
Edit: Please note that the B&W input, the output should be smoothed in shades of gray
source
share