1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibGfx: Convert FontDatabase APIs to use FlyString

This commit is contained in:
Andreas Kling 2023-09-05 20:19:33 +02:00 committed by Tim Flynn
parent e4d14e1afc
commit 13db3c5ce0
15 changed files with 66 additions and 62 deletions

View file

@ -1856,7 +1856,7 @@ RefPtr<Gfx::Font const> HackStudioWidget::read_editor_font_from_config()
auto font_variant = Config::read_string("HackStudio"sv, "EditorFont"sv, "Variant"sv);
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(MUST(FlyString::from_deprecated_fly_string(font_family)), FlyString::from_deprecated_fly_string(font_variant).release_value_but_fixme_should_propagate_errors(), font_size);
if (font.is_null())
return Gfx::FontDatabase::the().default_fixed_width_font();