Cosimo said:
This whole check is misguided and confusing (what's "color brightness" anyway, how's that defined?) -- there's two problems:
- whether black or white end up being illegible depends on the background, and CPAL version 1 allows specific palettes to be designed for dark or light backgrounds; besides, CPAL can contain more than one palette; this check completely ignores that, just takes the first default palette, assuming it's the only one, and simply goes about complaining that some glyphs are "too dark or too bright" (verbatim). But it's wrong to assume that a given palette entry index maps to only one given color, as there could be several palettes, and some may intentionally be designed for light/dark background.
- the check only considers this to be a problem for COLR version 0; why not also COLR version 1? How's that different from the former in the need to "not be too dark or too bright"? I'm pointing this out not much to recommend you include COLR version 1 in this check as well, but to highlight its arbitrariness.
FWIW, I would just remove this check altogether and remind designers about the possibility of using the 0xFFFF special foreground color palette entry index somewhere else (e.g. documentation about creating color fonts).
Originally posted by @anthrotype in #3908 (comment)
Cosimo said:
This whole check is misguided and confusing (what's "color brightness" anyway, how's that defined?) -- there's two problems:
FWIW, I would just remove this check altogether and remind designers about the possibility of using the 0xFFFF special foreground color palette entry index somewhere else (e.g. documentation about creating color fonts).
Originally posted by @anthrotype in #3908 (comment)