Implement basic support for variable-width fonts.

Also add a nice new font called Katica. It's not used anywhere yet but
I'm definitely itching to start using it. :^)
This commit is contained in:
Andreas Kling 2019-03-06 12:52:41 +01:00
commit 7f6c81d90f
Notes: sideshowbarker 2024-07-19 15:10:05 +09:00
8 changed files with 95 additions and 22 deletions

View file

@ -26,9 +26,8 @@ int main(int argc, char** argv)
auto* window = new GWindow;
window->set_title("FontEditor");
window->set_rect({ 50, 50, 420, 200 });
window->set_rect({ 50, 50, 420, 300 });
auto* font_editor = new FontEditorWidget(path, move(edited_font));
font_editor->set_relative_rect({ 0, 0, 420, 200 });
window->set_main_widget(font_editor);
window->set_should_exit_app_on_close(true);
window->show();