diff --git a/gui/libui/src/Font.cpp b/gui/libui/src/Font.cpp index 0534680c..12021d68 100644 --- a/gui/libui/src/Font.cpp +++ b/gui/libui/src/Font.cpp @@ -7,7 +7,7 @@ * */ -#include +#include #include #include @@ -49,8 +49,8 @@ namespace ui Result> Font::load_builtin(StringView name, FontWeight weight) { - auto path = TRY(String::format("/usr/share/fonts/%s-%s.psf"_sv, name.chars(), - weight == FontWeight::Bold ? "Bold" : "Regular")); + auto path = TRY(RefString::format("/usr/share/fonts/%s-%s.psf"_sv, name.chars(), + weight == FontWeight::Bold ? "Bold" : "Regular")); return load(path.view()); }