Closed overdrivenpotato closed 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.
ImageData
fn rasterize
Vec<u8>
@weswigham If you want to handle this
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 coverageVec<u8>
where coverage is a linear scale.