Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibGfx: Handle UTF-16-encoded OpenType font names
This change makes OpenType::Name::string_for_id handle fonts whose names are UTF-16-encoded (along with handling UTF-8-encoded names). Otherwise, without this change, the existing code assumes the names are UTF-8-encoded, fails gracelessly if they’re not, and crashes. Fixes LadybirdBrowser/ladybird#75 (cherry picked from commit 1a9dabe5ff443315a1e3e9c577f93936e6dd45dc)
- Loading branch information