LibGUI: Allow arbitrary font size in FontPicker

This commit adds a SpinBox to the FontPicker dialog to allow users to
set arbitrary font sizes (1 to 255 inclusive) for TTF fonts.
The SpinBox is only visible when the user is selecting a TTF font.
This commit is contained in:
James Triantafylos 2021-04-14 09:44:55 -04:00 committed by Linus Groh
commit c9196995be
Notes: sideshowbarker 2024-07-19 17:28:44 +09:00
3 changed files with 49 additions and 7 deletions

View file

@ -53,6 +53,7 @@ private:
RefPtr<ListView> m_family_list_view;
RefPtr<ListView> m_weight_list_view;
RefPtr<ListView> m_size_list_view;
RefPtr<SpinBox> m_size_spin_box;
RefPtr<Label> m_sample_text_label;
Vector<String> m_families;