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:
parent
c2f3dead91
commit
703b85b916
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue