#pragma once
#include "common.hpp"


class Font {
    private:
        static const unsigned max_w = 5;
        static const unsigned max_h = 5;

        typedef struct {
            unsigned w;
            unsigned char buf[max_w*max_h]; // textures will be loaded starting at (0,0)
        } font_char_t;
        font_char_t font[256];

    public:
        Font();
        void get_glyph(char, const unsigned char*&, unsigned&, unsigned&) const;
        void get_glyph_max(unsigned&, unsigned&) const;
};