Commit 152f03ff09b547d7cae2425edd963f7cf2680623

henry 2003-10-02T04:07:34

Test for outline or bitmap doesn't seem to matter.

diff --git a/include/FTBBox.h b/include/FTBBox.h
index c7b6dc1..7ff5301 100755
--- a/include/FTBBox.h
+++ b/include/FTBBox.h
@@ -55,21 +55,8 @@ class FTGL_EXPORT FTBBox
             upperZ(0.0f)
         {
             FT_BBox bbox;
-            if( ft_glyph_format_outline == glyph->format)
-            {
-                FT_Outline_Get_CBox( &(glyph->outline), &bbox);
-            }
-            else
-            {
-                FT_Glyph glyphImage;
-                if( 0 != FT_Get_Glyph( glyph, &glyphImage ))
-                {
-                    return;
-                }
-                FT_Glyph_Get_CBox( glyphImage, ft_glyph_bbox_subpixels, &bbox );
-                FT_Done_Glyph( glyphImage);
-            }
-            
+            FT_Outline_Get_CBox( &(glyph->outline), &bbox);
+
             lowerX = static_cast<float>( bbox.xMin) / 64.0f;
             lowerY = static_cast<float>( bbox.yMin) / 64.0f;
             lowerZ = 0.0f;