1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +00:00

DisplaySettings: Restrict selection of fixed-width fonts

Only allow fixed-width fonts to be the system fixed-width font. :^)
This commit is contained in:
Andreas Kling 2021-05-21 19:01:38 +02:00
parent 59fd1f40ce
commit be3f4c86de

View file

@ -35,7 +35,7 @@ FontSettingsWidget::FontSettingsWidget()
};
fixed_width_font_button.on_click = [this, &fixed_width_font_label] {
auto font_picker = GUI::FontPicker::construct(window(), &fixed_width_font_label.font(), false);
auto font_picker = GUI::FontPicker::construct(window(), &fixed_width_font_label.font(), true);
if (font_picker->exec() == GUI::Dialog::ExecOK) {
fixed_width_font_label.set_font(font_picker->font());
fixed_width_font_label.set_text(font_picker->font()->qualified_name());