mirror of
https://github.com/RGBCube/serenity
synced 2025-07-22 22:07:34 +00:00
HackStudio: Don't hard-code a default code font
If no HackStudio specific code font is set, we fall back to the system default fixed-width font.
This commit is contained in:
parent
d0977ac566
commit
c44bc58aaa
1 changed files with 3 additions and 3 deletions
|
@ -1843,9 +1843,9 @@ void HackStudioWidget::update_history_actions()
|
||||||
|
|
||||||
RefPtr<Gfx::Font const> HackStudioWidget::read_editor_font_from_config()
|
RefPtr<Gfx::Font const> HackStudioWidget::read_editor_font_from_config()
|
||||||
{
|
{
|
||||||
auto font_family = Config::read_string("HackStudio"sv, "EditorFont"sv, "Family"sv, "Csilla"sv);
|
auto font_family = Config::read_string("HackStudio"sv, "EditorFont"sv, "Family"sv);
|
||||||
auto font_variant = Config::read_string("HackStudio"sv, "EditorFont"sv, "Variant"sv, "Regular"sv);
|
auto font_variant = Config::read_string("HackStudio"sv, "EditorFont"sv, "Variant"sv);
|
||||||
auto font_size = Config::read_i32("HackStudio"sv, "EditorFont"sv, "Size"sv, 10);
|
auto font_size = Config::read_i32("HackStudio"sv, "EditorFont"sv, "Size"sv);
|
||||||
|
|
||||||
auto font = Gfx::FontDatabase::the().get(font_family, font_variant, font_size);
|
auto font = Gfx::FontDatabase::the().get(font_family, font_variant, font_size);
|
||||||
if (font.is_null())
|
if (font.is_null())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue