mooman219 / fontdue

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

Incorrect Colors in Web Demo #114

Closed overdrivenpotato closed 2 years ago

overdrivenpotato commented 2 years ago

The web demo incorrectly interprets the renderer output as being in the sRGB colorspace. ImageData expects sRGB colors by default, not linear. From the fontdue docs, fn rasterize returns a coverage Vec<u8> where coverage is a linear scale.

mooman219 commented 2 years ago

@weswigham If you want to handle this