Index: trunk/src/gfx/texture_font.cc
===================================================================
--- trunk/src/gfx/texture_font.cc	(revision 431)
+++ trunk/src/gfx/texture_font.cc	(revision 438)
@@ -29,6 +29,6 @@
 }
 
-texture_font::texture_font( texture_atlas* atlas, const char * filename, float size )
-	: m_atlas( atlas ), m_filename(filename), m_size( size ), 
+texture_font::texture_font( texture_atlas* atlas, const string_view& filename, float size )
+	: m_atlas( atlas ), m_filename( filename ), m_size( size ),
 	m_height(0), m_linegap(0), m_ascender(0), m_descender(0),
 	m_hinting( true ), m_filtering( true ), m_rlibrary( nullptr ), m_rface( nullptr )
@@ -53,5 +53,5 @@
 	NV_CHECK_FREETYPE_ERROR( error, "error on FT_Init_FreeType, code - ", error );
 
-	error = FT_New_Face( reinterpret_cast<FT_Library>(m_rlibrary), filename, 0, reinterpret_cast<FT_Face*>(&m_rface) );
+	error = FT_New_Face( reinterpret_cast<FT_Library>(m_rlibrary), filename.data(), 0, reinterpret_cast<FT_Face*>(&m_rface) );
 	NV_CHECK_FREETYPE_ERROR( error, "error on FT_New_Face, code - ", error );
 
