Commit 0dce598f52f9cfb0a124b489df38415c26abf73b

henry 2004-08-23T08:05:04

Added LineHeight function.

diff --git a/include/FTFont.h b/include/FTFont.h
index 5b3d9e4..94f722b 100755
--- a/include/FTFont.h
+++ b/include/FTFont.h
@@ -136,7 +136,14 @@ class FTGL_EXPORT FTFont
          * @return  Descender height
          */
         float Descender() const;
-
+        
+        /**
+         * Gets the line spacing for the font.
+         *
+         * @return  Line Height
+         */
+        float LineHeight() const;
+        
         /**
          * Get the bounding box for a string.
          *
diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index b0beb5f..9a8ee7a 100755
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -121,6 +121,10 @@ float FTFont::Descender() const
     return charSize.Descender();
 }
 
+float FTFont::LineHeight() const
+{
+    return charSize.Height();
+}
 
 void FTFont::BBox( const char* string,
                    float& llx, float& lly, float& llz, float& urx, float& ury, float& urz)