mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 13:25:10 +00:00
LibGfx: Introduce provisional font interface
Old font functionality has been moved into BitmapFont and an abstract Font interface has been introduced to faciliate further development of TTF font integration.
This commit is contained in:
parent
ac50bc79e4
commit
bb27b212de
13 changed files with 542 additions and 416 deletions
|
@ -26,10 +26,10 @@
|
|||
|
||||
#include "GlyphMapWidget.h"
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/BitmapFont.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
GlyphMapWidget::GlyphMapWidget(Gfx::Font& mutable_font)
|
||||
GlyphMapWidget::GlyphMapWidget(Gfx::BitmapFont& mutable_font)
|
||||
: m_font(mutable_font)
|
||||
{
|
||||
m_glyph_count = mutable_font.glyph_count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue