1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:17:44 +00:00

LibGfx: Add a way to construct an empty Font with arbitrary metrics

This commit is contained in:
Andreas Kling 2020-02-22 21:59:05 +01:00
parent 61bf8e01f9
commit 98fd6b8767
2 changed files with 16 additions and 3 deletions

View file

@ -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);