diff --git a/src/gpufont/font.hpp b/src/gpufont/font.hpp index f3758ae..c170e0a 100644 --- a/src/gpufont/font.hpp +++ b/src/gpufont/font.hpp @@ -214,33 +214,6 @@ class Font { glVertexAttribIPointer(2, 1, GL_INT, sizeof(BufferVertex), (void *)offsetof(BufferVertex, bufferIndex)); glBindVertexArray(0); - //{ - //uint32_t charcode = 0; - //FT_UInt glyphIndex = 0; - //FT_Error error = FT_Load_Glyph(face, glyphIndex, loadFlags); - //if(error){ - //std::cerr << "[font] error while loading undefined glyph: " << error << std::endl; - //// Continue, because we always want an entry for the undefined glyph in our glyphs map! - //} - - //buildGlyph(charcode, glyphIndex); - //} - - //for(uint32_t charcode = 32; charcode < 128; charcode++){ - //FT_UInt glyphIndex = FT_Get_Char_Index(face, charcode); - //if(!glyphIndex){ - //continue; - //} - - //FT_Error error = FT_Load_Glyph(face, glyphIndex, loadFlags); - //if(error){ - //std::cerr << "[font] error while loading glyph for character " << charcode << ": " << error << std::endl; - //continue; - //} - - //buildGlyph(charcode, glyphIndex); - //} - uploadBuffers(); #ifndef TARGET_OPENGLES