mooman219 / fontdue

The fastest font renderer in the world, written in pure rust.
Apache License 2.0
1.38k stars 70 forks source link

Custom font colors #143

Closed morn-0 closed 7 months ago

morn-0 commented 8 months ago

Hello, I am trying to customize the rendering color of a font, how do I calculate it based on the rasterize or rasterize_subpixel function. I've tried a few options and they don't seem to work very well

morn-0 commented 8 months ago

Incidentally to add to my context: it's based on a tiny-skia pixmap getting pixels_mut for the operation