mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
TextEditor: Allow picking non-proportional font
This commit is contained in:
committed by
Andreas Kling
parent
b8c25bc7ff
commit
6948f9ca55
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user