mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
28 lines
584 B
C++
28 lines
584 B
C++
#pragma once
|
|
|
|
#include <AK/Retainable.h>
|
|
#include <AK/Types.h>
|
|
|
|
class Font : public Retainable<Font> {
|
|
public:
|
|
static Font& defaultFont();
|
|
|
|
~Font();
|
|
|
|
const char* glyph(char) const;
|
|
|
|
byte glyphWidth() const { return m_glyphWidth; }
|
|
byte glyphHeight() const { return m_glyphHeight; }
|
|
|
|
private:
|
|
Font(const char* const* glyphs, byte glyphWidth, byte glyphHeight, byte firstGlyph, byte lastGlyph);
|
|
|
|
const char* const* m_glyphs { nullptr };
|
|
|
|
byte m_glyphWidth { 0 };
|
|
byte m_glyphHeight { 0 };
|
|
|
|
byte m_firstGlyph { 0 };
|
|
byte m_lastGlyph { 0 };
|
|
};
|