0ad/source/ps/Font.h
Gee cdf7334d34 Added GetHeight()
This was SVN commit r1236.
2004-10-14 10:10:43 +00:00

41 lines
474 B
C++
Executable File

#ifndef _FONT_H
#define _FONT_H
#include "ps/Singleton.h"
#include "ps/CStr.h"
#include "lib/res/handle.h"
#include <map>
#include <string>
/*
To use CFont:
CFont font("name");
font.Bind();
glwprintf(L"Hello world");
*/
class CFont
{
public:
CFont(const char* name);
~CFont();
CFont(const CFont&);
void Bind();
int GetLineSpacing();
int GetHeight();
void CalculateStringSize(const CStrW& string, int& w, int& h);
private:
Handle h;
};
#endif // _FONT_H