Index: trunk/src/gl/texture_font.cc
===================================================================
--- trunk/src/gl/texture_font.cc	(revision 24)
+++ trunk/src/gl/texture_font.cc	(revision 25)
@@ -4,5 +4,5 @@
 // This file is part of NV Libraries.
 // For conditions of distribution and use, see copyright notice in nv.hh
-
+#include <sstream>
 #include <stdexcept>
 
@@ -101,5 +101,11 @@
 		FT_UInt glyph_index = FT_Get_Char_Index( face, c ); 
 		FT_Error error = FT_Load_Glyph( face, glyph_index, flags ); 
-		if ( error ) throw std::runtime_error( "FT_Error while loading glyphs" );
+		if ( error )
+		{
+			std::stringstream error_msg;
+			error_msg << "FT_Error while loading glyphs, error: "
+				<< error << " code: " << c; 
+			throw std::runtime_error( error_msg.str().c_str() );
+		}
 
 		FT_GlyphSlot slot   = face->glyph;
@@ -114,5 +120,9 @@
 		if ( r.pos.x < 0 ) 
 		{
-			throw std::runtime_error( "Atlas full while loading glyphs" );
+			std::stringstream error_msg;
+			error_msg << "Atlas full while loading glyphs, "
+				<< "r.pos.x: " << r.pos.x << " code: "
+				<< c; 
+			throw std::runtime_error( error_msg.str().c_str() );
 		}
 		r.size.x -= 1;
