1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 09:37:45 +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,13 +32,14 @@
class GlyphEditorWidget;
class GlyphMapWidget;
struct UI_FontEditorBottom;
class FontEditorWidget final : public GUI::Widget {
C_OBJECT(FontEditorWidget)
public:
virtual ~FontEditorWidget() override;
int preferred_width() { return m_preferred_width; }
int preferred_height() { return m_preferred_height; }
private:
FontEditorWidget(const String& path, RefPtr<Gfx::Font>&&);
RefPtr<Gfx::Font> m_edited_font;
@ -47,6 +48,6 @@ private:
RefPtr<GlyphEditorWidget> m_glyph_editor_widget;
String m_path;
OwnPtr<UI_FontEditorBottom> m_ui;
int m_preferred_width;
int m_preferred_height;
};