From 3b1e05f714ac7a791b4565b59f4bd1455c08ab67 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 20 Jul 2021 01:21:59 +0200 Subject: [PATCH] LibTTF: Don't choke on fonts with CompositeGlyfFlags::UseMyMetrics This was preventing us from loading JetBrains Mono Regular with LibTTF. --- Userland/Libraries/LibTTF/Glyf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibTTF/Glyf.cpp b/Userland/Libraries/LibTTF/Glyf.cpp index 01d8cecdce..8267ae5776 100644 --- a/Userland/Libraries/LibTTF/Glyf.cpp +++ b/Userland/Libraries/LibTTF/Glyf.cpp @@ -174,7 +174,7 @@ Optional Glyf::Glyph::ComponentIterator::n TODO(); } if (flags & (u16)CompositeGlyfFlags::UseMyMetrics) { - TODO(); + // FIXME: Implement this. There's no TODO() here since many fonts work just fine without this. } if (flags & (u16)CompositeGlyfFlags::ScaledComponentOffset) { TODO();