Changeset 25 for trunk/src/gl/texture_font.cc
- Timestamp:
- 05/18/13 11:34:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/texture_font.cc
r24 r25 4 4 // This file is part of NV Libraries. 5 5 // For conditions of distribution and use, see copyright notice in nv.hh 6 6 #include <sstream> 7 7 #include <stdexcept> 8 8 … … 101 101 FT_UInt glyph_index = FT_Get_Char_Index( face, c ); 102 102 FT_Error error = FT_Load_Glyph( face, glyph_index, flags ); 103 if ( error ) throw std::runtime_error( "FT_Error while loading glyphs" ); 103 if ( error ) 104 { 105 std::stringstream error_msg; 106 error_msg << "FT_Error while loading glyphs, error: " 107 << error << " code: " << c; 108 throw std::runtime_error( error_msg.str().c_str() ); 109 } 104 110 105 111 FT_GlyphSlot slot = face->glyph; … … 114 120 if ( r.pos.x < 0 ) 115 121 { 116 throw std::runtime_error( "Atlas full while loading glyphs" ); 122 std::stringstream error_msg; 123 error_msg << "Atlas full while loading glyphs, " 124 << "r.pos.x: " << r.pos.x << " code: " 125 << c; 126 throw std::runtime_error( error_msg.str().c_str() ); 117 127 } 118 128 r.size.x -= 1;
Note: See TracChangeset
for help on using the changeset viewer.