mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
Start working on a simple graphical font editor.
Editing fonts by editing text files is really slow and boring. A simple font editor seems like a good way to take LibGUI for a spin.
This commit is contained in:
parent
5e0b7f1a56
commit
6fc3c38324
18 changed files with 390 additions and 19 deletions
|
@ -9,6 +9,8 @@ class Font : public Retainable<Font> {
|
|||
public:
|
||||
static Font& default_font();
|
||||
|
||||
RetainPtr<Font> clone() const;
|
||||
|
||||
~Font();
|
||||
|
||||
const CharacterBitmap& glyph_bitmap(char ch) const { return *m_bitmaps[(byte)ch]; }
|
||||
|
@ -19,7 +21,7 @@ public:
|
|||
static void initialize();
|
||||
|
||||
private:
|
||||
Font(const char* const* glyphs, byte glyph_width, byte glyph_height, byte firstGlyph, byte lastGlyph);
|
||||
Font(const char* const* glyphs, byte glyph_width, byte glyph_height, byte first_glyph, byte last_glyph);
|
||||
|
||||
const char* const* m_glyphs { nullptr };
|
||||
mutable RetainPtr<CharacterBitmap> m_bitmaps[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue