1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:27:45 +00:00

LibTTF: Interpret font names from Windows platform as UTF-16BE

This turns the admittedly aesthetic "T a h o m a" into "Tahoma" :^)
This commit is contained in:
Andreas Kling 2021-02-16 17:31:42 +01:00
parent 0538dc4e28
commit 085696ea39
3 changed files with 14 additions and 1 deletions

View file

@ -148,6 +148,11 @@ private:
class Name {
public:
enum class Platform {
Unicode = 0,
Macintosh = 1,
Windows = 3,
};
static Optional<Name> from_slice(const ReadonlyBytes&);
String family_name() const { return string_for_id(NameId::FamilyName); }