Commit 9982b64479ee0d44b1a16c8a6574e1800d01d76e

henry 2001-08-07T21:21:16

Added Error(). Minor Tidy ups Added Underline()...doesn't work yet

diff --git a/include/FTSize.h b/include/FTSize.h
index fc2f5b6..c90dcf1 100755
--- a/include/FTSize.h
+++ b/include/FTSize.h
@@ -18,6 +18,9 @@ class	FTSize
 		int	Descender() const;
 		int	Height() const;
 		int	Width() const;
+		int	Underline() const;
+
+		FT_Error Error() const { return err; }
 		
 		// attributes
 		
@@ -28,6 +31,8 @@ class	FTSize
 		FT_Size   ftSize;
 		int	size;
 		
+		FT_Error err;
+		
 };
 
 #endif	//	__FTSize__
diff --git a/src/FTSize.cpp b/src/FTSize.cpp
index c652103..4fede75 100755
--- a/src/FTSize.cpp
+++ b/src/FTSize.cpp
@@ -1,35 +1,20 @@
-// Code generated by Object Plant
-
 #include	"FTSize.h"
 #include	"FTGL.h"
-//Insert your own code here.
 
-//End of user code.         
 
-// OPSignature:  FTSize:FTSize() 
 FTSize::FTSize()
 :	size(0)
-{
-//Insert your own code here.
-
-//End of user code.         
-}
+{}
 
 
-// OPSignature:  FTSize:~FTSize() 
 FTSize::~FTSize()
-{
-//Insert your own code here.
-
-//End of user code.         
-}
+{}
 
 
-// OPSignature: bool FTSize:SetCharSize( FT_Face:face  int:point_size  int:x_resolution  int:y_resolution ) 
 bool	FTSize::CharSize( FT_Face* ftFace, int point_size, int x_resolution, int y_resolution )
 {
 	size = point_size;
-	FT_Error err = FT_Set_Char_Size( *ftFace, 0L, point_size * 64, x_resolution, y_resolution);
+	err = FT_Set_Char_Size( *ftFace, 0L, point_size * 64, x_resolution, y_resolution);
 	
 	ftSize = (*ftFace)->size;
 	
@@ -37,29 +22,33 @@ bool	FTSize::CharSize( FT_Face* ftFace, int point_size, int x_resolution, int y_
 }
 
 
-// OPSignature: int FTSize:GetAscender() 
 int	FTSize::Ascender() const
 {
 	return ftSize->metrics.ascender >> 6;
 }
 
 
-// OPSignature: int FTSize:GetDescender() 
 int	FTSize::Descender() const
 {
 	return ftSize->metrics.descender >> 6;
 }
 
 
-// OPSignature: int FTSize:Height() 
 int	FTSize::Height() const
 {
 	return ftSize->metrics.height >> 6;
 }
 
 
-// OPSignature: int FTSize:Width() 
 int	FTSize::Width() const
 {
 	return ftSize->metrics.max_advance >> 6;
 }
+
+
+int	FTSize::Underline() const
+{
+	return 0;
+}
+
+