Commit ac5532fe602054303b2b31252c91c525eff50709

henry 2002-01-09T20:35:52

FTBbox now uses floats rather then ints

diff --git a/include/FTFont.h b/include/FTFont.h
index b872872..e0d39e4 100755
--- a/include/FTFont.h
+++ b/include/FTFont.h
@@ -106,7 +106,7 @@ class FTGL_EXPORT FTFont
 		 * @param ury		upper right far y coord
 		 * @param urz		upper right far z coord
 		 */
-		void BBox( const char* text, int& llx, int& lly, int& llz, int& urx, int& ury, int& urz);
+		void BBox( const char* text, float& llx, float& lly, float& llz, float& urx, float& ury, float& urz);
 
 		/**
 		 * Get the bounding box for a string.
@@ -119,7 +119,7 @@ class FTGL_EXPORT FTFont
 		 * @param ury		upper right far y coord
 		 * @param urz		upper right far z coord
 		 */
-		void BBox( const wchar_t* string, int& llx, int& lly, int& llz, int& urx, int& ury, int& urz);
+		void BBox( const wchar_t* string, float& llx, float& lly, float& llz, float& urx, float& ury, float& urz);
 
 		/**
 		 * Get the advance width for a string.
diff --git a/include/FTGlyph.h b/include/FTGlyph.h
index 5b52b7b..6494d64 100755
--- a/include/FTGlyph.h
+++ b/include/FTGlyph.h
@@ -8,6 +8,11 @@
 #include "FTGL.h"
 
 
+/**
+ * FTBBox
+ *
+ *
+ */
 class FTGL_EXPORT FTBBox
 {
 	public:
@@ -26,10 +31,10 @@ class FTGL_EXPORT FTBBox
 			FT_Glyph_Get_CBox( glyph, ft_glyph_bbox_subpixels, &bbox );
 			
 			x1 = bbox.xMin >> 6;
-			y1 = bbox.yMin >> 6;;
+			y1 = bbox.yMin >> 6;
 			z1 = 0;
-			x2 = bbox.xMax >> 6;;
-			y2 = bbox.yMax >> 6;;
+			x2 = bbox.xMax >> 6;
+			y2 = bbox.yMax >> 6;
 			z2 = 0;	
 		}		
 		
@@ -46,7 +51,7 @@ class FTGL_EXPORT FTBBox
 		{}
 	
 		// Make these ftPoints
-		int x1, y1, z1, x2, y2, z2;
+		float x1, y1, z1, x2, y2, z2;
 
 	protected:
 	
diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index 2bac506..d0319ed 100755
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -108,7 +108,7 @@ int	FTFont::Descender() const
 
 
 void FTFont::BBox( const char* string,
-                   int& llx, int& lly, int& llz, int& urx, int& ury, int& urz)
+                    float& llx, float& lly, float& llz, float& urx, float& ury, float& urz)
 {
 	const unsigned char* c = (unsigned char*)string;
 	llx = lly = llz = urx = ury = urz = 0;
@@ -144,7 +144,7 @@ void FTFont::BBox( const char* string,
 }
 
 void FTFont::BBox( const wchar_t* string,
-                   int& llx, int& lly, int& llz, int& urx, int& ury, int& urz)
+                    float& llx, float& lly, float& llz, float& urx, float& ury, float& urz)
 {
 	const wchar_t* c = string;
 	llx = lly = llz = urx = ury = urz = 0;