25 lines
366 B
C++
25 lines
366 B
C++
#ifndef JES_FONT_H
|
|
#define JES_FONT_H
|
|
|
|
#include "jes/Ref.h"
|
|
#include <ft2build.h>
|
|
#include FT_FREETYPE_H
|
|
|
|
namespace jes
|
|
{
|
|
class Font
|
|
{
|
|
public:
|
|
Font();
|
|
~Font();
|
|
bool load(FT_Library ft, const char * fname, size_t size);
|
|
protected:
|
|
FT_Face m_face;
|
|
bool m_loaded;
|
|
};
|
|
|
|
typedef Ref<Font> FontRef;
|
|
}
|
|
|
|
#endif
|