LibGfx/TTF: Ignore unsupported composite glyph flags

Replace some program-stopping TODO()'s with FIXME comments, since many
fonts actually render mostly fine without support for all features.
This commit is contained in:
Andreas Kling 2021-09-13 19:45:14 +02:00
parent 7c39a5860d
commit daead75e9c

View file

@ -171,16 +171,16 @@ Optional<Glyf::Glyph::ComponentIterator::Item> Glyf::Glyph::ComponentIterator::n
e = arg1;
f = arg2;
} else {
TODO();
// FIXME: Implement this. There's no TODO() here since many fonts work just fine without this.
}
if (flags & (u16)CompositeGlyfFlags::UseMyMetrics) {
// FIXME: Implement this. There's no TODO() here since many fonts work just fine without this.
}
if (flags & (u16)CompositeGlyfFlags::ScaledComponentOffset) {
TODO();
// FIXME: Implement this. There's no TODO() here since many fonts work just fine without this.
}
if (flags & (u16)CompositeGlyfFlags::UnscaledComponentOffset) {
TODO();
// FIXME: Implement this. There's no TODO() here since many fonts work just fine without this.
}
m_has_more = (flags & (u16)CompositeGlyfFlags::MoreComponents);
return Item {