diff options
author | Simon Wanner <skyrising@pvpctutorials.de> | 2022-04-09 10:14:58 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-09 23:48:18 +0200 |
commit | 5136c5ae1aed77ccddab128e9ffd88335a9bfcc4 (patch) | |
tree | cacc56ac5ded41ab95208cd0deb0d1db47aa25ff /Userland/Libraries/LibWeb/CSS | |
parent | 206d6ece55e44117fd49525eeca5bd28d83ac5eb (diff) | |
download | serenity-5136c5ae1aed77ccddab128e9ffd88335a9bfcc4.zip |
LibGfx: Move ScaledFont and new base class VectorFont out of TTF
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index aa39bf39b8..7f7f41f2dc 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -12,6 +12,7 @@ #include <LibGfx/Font/Font.h> #include <LibGfx/Font/FontDatabase.h> #include <LibGfx/Font/FontStyleMapping.h> +#include <LibGfx/Font/ScaledFont.h> #include <LibGfx/Font/TrueType/Font.h> #include <LibWeb/CSS/CSSFontFaceRule.h> #include <LibWeb/CSS/CSSStyleRule.h> @@ -65,7 +66,7 @@ public: { if (!m_ttf_font) return nullptr; - return adopt_ref(*new TTF::ScaledFont(*m_ttf_font, point_size, point_size)); + return adopt_ref(*new Gfx::ScaledFont(*m_ttf_font, point_size, point_size)); } private: |