Changeset 438 for trunk/src/gfx/texture_font.cc
- Timestamp:
- 07/23/15 17:29:49 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/texture_font.cc
r405 r438 29 29 } 30 30 31 texture_font::texture_font( texture_atlas* atlas, const char *filename, float size )32 : m_atlas( atlas ), m_filename( filename), m_size( size ),31 texture_font::texture_font( texture_atlas* atlas, const string_view& filename, float size ) 32 : m_atlas( atlas ), m_filename( filename ), m_size( size ), 33 33 m_height(0), m_linegap(0), m_ascender(0), m_descender(0), 34 34 m_hinting( true ), m_filtering( true ), m_rlibrary( nullptr ), m_rface( nullptr ) … … 53 53 NV_CHECK_FREETYPE_ERROR( error, "error on FT_Init_FreeType, code - ", error ); 54 54 55 error = FT_New_Face( reinterpret_cast<FT_Library>(m_rlibrary), filename , 0, reinterpret_cast<FT_Face*>(&m_rface) );55 error = FT_New_Face( reinterpret_cast<FT_Library>(m_rlibrary), filename.data(), 0, reinterpret_cast<FT_Face*>(&m_rface) ); 56 56 NV_CHECK_FREETYPE_ERROR( error, "error on FT_New_Face, code - ", error ); 57 57
Note: See TracChangeset
for help on using the changeset viewer.