23 lines
364 B
C++
23 lines
364 B
C++
#pragma once
|
|
#include <cstddef>
|
|
|
|
#include "common/String.h"
|
|
|
|
#define FONT_H 12
|
|
|
|
class FontReader
|
|
{
|
|
unsigned char const *pointer;
|
|
int width;
|
|
int pixels;
|
|
int data;
|
|
|
|
FontReader(unsigned char const *_pointer);
|
|
static unsigned char const *lookupChar(String::value_type ch);
|
|
|
|
public:
|
|
FontReader(String::value_type ch);
|
|
int GetWidth() const;
|
|
int NextPixel();
|
|
};
|