1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

TextEditor: Allow picking non-proportional font

This commit is contained in:
Stephan Unverwerth 2021-01-03 17:45:08 +01:00 committed by Andreas Kling
parent b8c25bc7ff
commit 6948f9ca55

View file

@ -458,7 +458,7 @@ TextEditorWidget::TextEditorWidget()
view_menu.add_action(GUI::Action::create("Editor font...", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-font-editor.png"),
[&](auto&) {
auto picker = GUI::FontPicker::construct(window(), &m_editor->font(), true);
auto picker = GUI::FontPicker::construct(window(), &m_editor->font(), false);
if (picker->exec() == GUI::Dialog::ExecOK) {
dbgln("setting font {}", picker->font()->qualified_name());
m_editor->set_font(picker->font());