-#ifndef FONT_H_
-#define FONT_H_
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GL_FONT_H_
+#define MSP_GL_FONT_H_
#include <map>
#include <string>
void draw_string(const std::string &) const;
void draw_string(const std::string &, Codecs::Decoder &) const;
void draw_multiline(const std::string &) const;
-
+
template<class C>
float get_string_width(const std::string &str) const
{
typename C::Decoder dec;
return get_string_width(str, dec);
- }
-
+ }
+
template<class C>
void draw_string(const std::string &str) const
{
typename C::Decoder dec;
draw_string(str, dec);
- }
+ }
private:
struct Glyph
{
Glyph &glyph;
void texcoords(float, float, float, float);
- void size(float, float);
- void offset(float, float);
};
unsigned code;