Index: trunk/src/gl/texture_font.cc
===================================================================
--- trunk/src/gl/texture_font.cc	(revision 23)
+++ trunk/src/gl/texture_font.cc	(revision 24)
@@ -12,10 +12,10 @@
 using namespace nv;
 
-texture_gylph::texture_gylph()
+texture_glyph::texture_glyph()
 	: charcode(0), size(0,0), offset(0,0), advance(0.f,0.f), tl(0.f,0.f), br(0.f,0.f)
 {
 }
 
-float texture_gylph::get_kerning( const uint16 charcode )
+float texture_glyph::get_kerning( const uint16 charcode )
 {
 	auto i = kerning.find( charcode );
@@ -61,8 +61,8 @@
 }
 
-const texture_gylph* texture_font::get_gylph( uint16 charcode ) const
+const texture_glyph* texture_font::get_glyph( uint16 charcode ) const
 {
-	auto i = m_gylphs.find( charcode );
-	if ( i == m_gylphs.end() )
+	auto i = m_glyphs.find( charcode );
+	if ( i == m_glyphs.end() )
 	{
 		return nullptr;
@@ -101,5 +101,5 @@
 		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 gylphs" );
+		if ( error ) throw std::runtime_error( "FT_Error while loading glyphs" );
 
 		FT_GlyphSlot slot   = face->glyph;
@@ -114,5 +114,5 @@
 		if ( r.pos.x < 0 ) 
 		{
-			throw std::runtime_error( "Atlas full while loading gylphs" );
+			throw std::runtime_error( "Atlas full while loading glyphs" );
 		}
 		r.size.x -= 1;
@@ -120,6 +120,6 @@
 		m_atlas->set_region( r, ft_bitmap.buffer, ft_bitmap.pitch );
 
-		m_gylphs[ c ] = texture_gylph();
-		texture_gylph* g = &(m_gylphs.find( c )->second);
+		m_glyphs[ c ] = texture_glyph();
+		texture_glyph* g = &(m_glyphs.find( c )->second);
 
 		g->charcode = c;
