mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +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
|
@ -37,7 +37,7 @@ public:
|
|||
u16 weight() const override { return m_weight; }
|
||||
void set_weight(u16 weight) { m_weight = weight; }
|
||||
|
||||
u8 slope() const { return m_slope; }
|
||||
virtual u8 slope() const override { return m_slope; }
|
||||
void set_slope(u8 slope) { m_slope = slope; }
|
||||
|
||||
Glyph glyph(u32 code_point) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue