]> git.tdb.fi Git - libs/gl.git/blobdiff - source/font.h
Add Id tags and copyright notices to files
[libs/gl.git] / source / font.h
index 278a14aa82ab53fd3cd2c57172f3dbbb3d33fe7a..a55933519b6c792a72bf967a7bdce2d7514afdf1 100644 (file)
@@ -1,5 +1,12 @@
-#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>
@@ -42,20 +49,20 @@ public:
        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
        {
@@ -68,8 +75,6 @@ private:
                        Glyph &glyph;
 
                        void texcoords(float, float, float, float);
-                       void size(float, float);
-                       void offset(float, float);
                };
 
                unsigned code;