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:
parent
a79e730839
commit
87a149c9a4
5 changed files with 29 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue