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:
parent
0538dc4e28
commit
085696ea39
3 changed files with 14 additions and 1 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue