5#ifndef INCLUDE_FIFECHAN_FONT_HPP_
6#define INCLUDE_FIFECHAN_FONT_HPP_
10#include "fifechan/platform.hpp"
26 virtual ~Font() =
default;
44 virtual int getWidth(std::string
const & text)
const = 0;
Font & operator=(Font const &)=default
Copy assignment operator.
Font(Font &&)=default
Move constructor.
Font(Font const &)=default
Copy constructor.
virtual int getWidth(std::string const &text) const =0
Gets the width of a string.
virtual int getHeight() const =0
Gets the height of the glyphs in the font.
virtual void drawString(Graphics *graphics, std::string const &text, int x, int y)=0
Draws a string.
virtual int getStringIndexAt(std::string const &text, int x) const
Gets a string index in a string providing an x coordinate.
Font & operator=(Font &&)=default
Move assignment operator.
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).