1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

Applications: FontEditor, relocate form items by fonts size

FontEditor widget rewritten for respect to the font size and added fixed width and height header values.
This commit is contained in:
Hüseyin ASLITÜRK 2020-05-09 01:06:56 +03:00 committed by Andreas Kling
parent e68a08ad7c
commit 3874664752
9 changed files with 243 additions and 88 deletions

View file

@ -32,8 +32,8 @@ class GlyphEditorWidget final : public GUI::Frame {
public:
virtual ~GlyphEditorWidget() override;
u8 glyph() const { return m_glyph; }
void set_glyph(u8);
int glyph() const { return m_glyph; }
void set_glyph(int);
int preferred_width() const;
int preferred_height() const;
@ -52,6 +52,6 @@ private:
void draw_at_mouse(const GUI::MouseEvent&);
RefPtr<Gfx::Font> m_font;
u8 m_glyph { 0 };
int m_glyph { 0 };
int m_scale { 10 };
};