From 703b85b916d53217d4395f14a6a23b9f9c4050e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Offenh=C3=A4user?= Date: Sun, 13 Nov 2022 11:58:36 +0100 Subject: [PATCH] LibGfx: Make the ttf parser recognize files with the "true" tag --- Userland/Libraries/LibGfx/Font/TrueType/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Font/TrueType/Font.cpp b/Userland/Libraries/LibGfx/Font/TrueType/Font.cpp index 79f6adc11e..20004833ee 100644 --- a/Userland/Libraries/LibGfx/Font/TrueType/Font.cpp +++ b/Userland/Libraries/LibGfx/Font/TrueType/Font.cpp @@ -379,7 +379,7 @@ ErrorOr> Font::try_load_from_externally_owned_memory(Readonl if (tag == tag_from_str("OTTO")) return Error::from_string_literal("CFF fonts not supported yet"); - if (tag != 0x00010000) + if (tag != 0x00010000 && tag != tag_from_str("true")) return Error::from_string_literal("Not a valid font"); return try_load_from_offset(buffer, 0);