> Just a reminder. If you are busy with other matters, I understand, I
> just want to make sure this hasn’t been forgotten.

Thanks for the reminder.

> I’m surprised that this font is supposed to change size when using
> colored glyphs.  I suspect that FreeType’s perspective is that
> glyphs should be the same size, whether they are colored or not, and
> this font is violating that.  Could you confirm if you think this
> font is flawed, or if this is a bug in FreeType?

This is a bug in the font.  As far as I understand the idea of 'COLR'
(version 0, as we have here), the colored sub-elements, if 'summed
up', so to say, must yield *exactly* the same bounding box so that a
font engine not understanding 'COLR' can use the B/W version of the
glyph instead without any change of the layout.

The color version of glyph 396 in `p5.ttf` violates this assumption;
sub-glyph 401 is a black square around sub-glyph 400; it is not
present in glyph 396 and incorrectly makes the bbox larger than the
B/W version.


    Werner

Reply via email to