summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-17 14:06:55 +0000
committerLinus Groh <mail@linusgroh.de>2023-02-19 00:51:16 +0100
commit1c77867c78d55b8f06e03edfa79b0fb1b1c2ba64 (patch)
treeb832364ba039afb85c96bffe1df54c9d9adba11d /Userland/Libraries/LibWeb/Painting
parentfaab2fe101872ce2ab9e8d9a1b37b7818c590225 (diff)
downloadserenity-1c77867c78d55b8f06e03edfa79b0fb1b1c2ba64.zip
LibWeb: Port FontCache to new Strings
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting')
-rw-r--r--Userland/Libraries/LibWeb/Painting/PaintableBox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
index 111a46766c..bb1c807eeb 100644
--- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
+++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp
@@ -515,7 +515,7 @@ static void paint_text_fragment(PaintContext& context, Layout::TextNode const& t
auto& font = fragment.layout_node().font();
auto scaled_font = [&]() -> RefPtr<Gfx::Font> {
auto device_font_pt_size = context.enclosing_device_pixels(font.presentation_size());
- FontSelector font_selector = { font.family(), static_cast<float>(device_font_pt_size.value()), font.weight(), font.width(), font.slope() };
+ FontSelector font_selector = { FlyString::from_utf8(font.family()).release_value_but_fixme_should_propagate_errors(), static_cast<float>(device_font_pt_size.value()), font.weight(), font.width(), font.slope() };
if (auto cached_font = FontCache::the().get(font_selector)) {
return cached_font;
}