mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
LibGfx: Add a way to construct an empty Font with arbitrary metrics
This commit is contained in:
parent
61bf8e01f9
commit
98fd6b8767
2 changed files with 16 additions and 3 deletions
|
@ -76,7 +76,8 @@ public:
|
|||
static Font& default_fixed_width_font();
|
||||
static Font& default_bold_fixed_width_font();
|
||||
|
||||
RefPtr<Font> clone() const;
|
||||
NonnullRefPtr<Font> clone() const;
|
||||
static NonnullRefPtr<Font> create(u8 glyph_height, u8 glyph_width, bool fixed);
|
||||
|
||||
static RefPtr<Font> load_from_file(const StringView& path);
|
||||
bool write_to_file(const StringView& path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue