mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibGfx: Move ScaledFont and new base class VectorFont out of TTF
This commit is contained in:
parent
206d6ece55
commit
5136c5ae1a
9 changed files with 260 additions and 199 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue