summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibTTF/Font.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-17 00:46:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-17 01:27:30 +0200
commit36f27094d0e4cd1b82b4ba50a7c9f92736a86817 (patch)
treefc3011ac81040213974c8a40ea6b2dfb533b9cd0 /Userland/Libraries/LibTTF/Font.h
parent0528dc9b8761113ac3f600f297f9454a7590bf88 (diff)
downloadserenity-36f27094d0e4cd1b82b4ba50a7c9f92736a86817.zip
LibTTF: Make load_from_file() take String instead of StringView
Diffstat (limited to 'Userland/Libraries/LibTTF/Font.h')
-rw-r--r--Userland/Libraries/LibTTF/Font.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibTTF/Font.h b/Userland/Libraries/LibTTF/Font.h
index 19e619261a..21b44da7e8 100644
--- a/Userland/Libraries/LibTTF/Font.h
+++ b/Userland/Libraries/LibTTF/Font.h
@@ -66,7 +66,7 @@ class Font : public RefCounted<Font> {
AK_MAKE_NONCOPYABLE(Font);
public:
- static RefPtr<Font> load_from_file(const StringView& path, unsigned index = 0);
+ static RefPtr<Font> load_from_file(String path, unsigned index = 0);
static RefPtr<Font> load_from_memory(ByteBuffer&, unsigned index = 0);
ScaledFontMetrics metrics(float x_scale, float y_scale) const;