diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-17 14:06:55 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-19 00:51:16 +0100 |
commit | 1c77867c78d55b8f06e03edfa79b0fb1b1c2ba64 (patch) | |
tree | b832364ba039afb85c96bffe1df54c9d9adba11d /Userland/Libraries/LibWeb/Painting | |
parent | faab2fe101872ce2ab9e8d9a1b37b7818c590225 (diff) | |
download | serenity-1c77867c78d55b8f06e03edfa79b0fb1b1c2ba64.zip |
LibWeb: Port FontCache to new Strings
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 2 |
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; } |