Commit f9f6f7ad40f4a57a344d61ce3626326ceebcbea5

henry 2001-09-19T01:50:55

Added accessor function for advance width

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/include/FTGlyph.h b/include/FTGlyph.h
index cbb6987..5002d06 100755
--- a/include/FTGlyph.h
+++ b/include/FTGlyph.h
@@ -37,7 +37,14 @@ class FTGlyph
 		 * @return		The advance distance for this glyph.
 		 */
 		virtual float Render( const FT_Vector& pen) = 0;
-
+		
+		/**
+		 * Return the advance width for this glyph.
+		 *
+		 * @return	advance width.
+		 */
+		float Advance() const { return advance;}
+		
 		/**
 		 * Queries for errors.
 		 *