Program Listing for File font.h

Return to documentation for file (src/canvas/fonts/font.h)

/*
 * Font.h - Base class for Pattern fonts.
 */
#ifndef FONT_H
#define FONT_H

#include <stdint.h>
#include "../../core/point.h"

namespace PixelMaestro {
    class Font {
        public:
            enum class Type :uint8_t {
                Font5x8
            };

            Point size = {0, 0};
            virtual const uint8_t* get_char(uint8_t character) = 0;

            virtual ~Font() {}
    };
}

#endif // FONT_H