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

LibGfx: Determine slope attributes for TrueTypeFonts from tables

First checks the OS/2 table for an oblique selection flag before
falling back on italic flags.
This commit is contained in:
thankyouverycool 2022-01-31 20:10:30 -05:00 committed by Andreas Kling
parent a79e730839
commit 87a149c9a4
5 changed files with 29 additions and 1 deletions

View file

@ -101,6 +101,7 @@ public:
FontMetrics metrics(u32 code_point) const;
virtual u8 presentation_size() const = 0;
virtual u8 slope() const = 0;
virtual u16 weight() const = 0;
virtual Glyph glyph(u32 code_point) const = 0;