summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2021-01-03 17:36:04 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-15 08:50:48 +0100
commitb8c25bc7ff3bda9328532335018b84ed9f715f65 (patch)
tree199e16261f62484bd55af345a937f104e4900294 /Userland/Demos
parent79dfe9846de4ce99879964d5e1c953542ac8f041 (diff)
downloadserenity-b8c25bc7ff3bda9328532335018b84ed9f715f65.zip
LibGfx: Remove static load_from_file() from abstract Font class
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/LibGfxDemo/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/LibGfxDemo/main.cpp b/Userland/Demos/LibGfxDemo/main.cpp
index f3192f4cc7..8d40798e30 100644
--- a/Userland/Demos/LibGfxDemo/main.cpp
+++ b/Userland/Demos/LibGfxDemo/main.cpp
@@ -167,7 +167,7 @@ void Canvas::draw()
painter.draw_text({ 520, 450, 240, 20 }, "Normal text (fixed width)", Gfx::FontDatabase::default_fixed_width_font(), Gfx::TextAlignment::CenterLeft, Color::Blue);
painter.draw_text({ 520, 465, 240, 20 }, "Bold text (fixed width)", Gfx::FontDatabase::default_bold_fixed_width_font(), Gfx::TextAlignment::CenterLeft, Color::Yellow);
- auto font = Gfx::Font::load_from_file("/res/fonts/PebbletonBold14.font");
+ auto font = Gfx::BitmapFont::load_from_file("/res/fonts/PebbletonBold14.font");
painter.draw_rect({ 520, 510, 240, 30 }, Color::DarkGray);
painter.draw_text({ 520, 510, 240, 30 }, "Hello friends! :^)", *font, Gfx::TextAlignment::Center, Color::White);