Commit 42d9563141a3f67fd2fd37ab186fb1c31469fce3

henry 2001-11-13T05:45:52

Fixed up the xOffset ( +padding)

diff --git a/src/FTGLTextureFont.cpp b/src/FTGLTextureFont.cpp
index 2d623b6..ab29af8 100755
--- a/src/FTGLTextureFont.cpp
+++ b/src/FTGLTextureFont.cpp
@@ -49,8 +49,8 @@ FTGlyph* FTGLTextureFont::MakeGlyph( unsigned int g)
 	if( ftGlyph)
 	{
 		// Estimate the glyph size size - global bbox
-		glyphHeight = ( charSize.Height()) + padding;
-		glyphWidth = ( charSize.Width()) + padding;
+		glyphHeight = ( charSize.Height());
+		glyphWidth = ( charSize.Width());
 		
 		// Is there a current texture
 		if( numTextures == 0)
@@ -80,7 +80,7 @@ FTGlyph* FTGLTextureFont::MakeGlyph( unsigned int g)
 		FTTextureGlyph* tempGlyph = new FTTextureGlyph( *ftGlyph, glTextureID[numTextures - 1],
 															xOffset, yOffset, textureWidth, textureHeight);
 		
-		xOffset += tempGlyph->BBox().x2 - tempGlyph->BBox().x1;
+		xOffset += tempGlyph->BBox().x2 - tempGlyph->BBox().x1 + padding;
 		
 		--remGlyphs;
 		return tempGlyph;