mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:27:35 +00:00
LibGfx: Pass font width to FontDatabase::get()
Width need to be passed to `FontDatabase::get()` to resolve font name unambiguously.
This commit is contained in:
parent
79006c03b4
commit
1f4106842d
21 changed files with 71 additions and 21 deletions
|
@ -44,6 +44,8 @@ public:
|
|||
|
||||
virtual float pixel_size() const override { return m_glyph_height; }
|
||||
|
||||
u16 width() const override { return FontWidth::Normal; }
|
||||
|
||||
u16 weight() const override { return m_weight; }
|
||||
void set_weight(u16 weight) { m_weight = weight; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue