1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

LibGfx: Make the ttf parser recognize files with the "true" tag

This commit is contained in:
Julian Offenhäuser 2022-11-13 11:58:36 +01:00 committed by Andrew Kaster
parent c2f3dead91
commit 703b85b916

View file

@ -379,7 +379,7 @@ ErrorOr<NonnullRefPtr<Font>> 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);