diff --git a/example/src/gpufont/font.hpp b/example/src/gpufont/font.hpp index c4e970e..d73f9e7 100644 --- a/example/src/gpufont/font.hpp +++ b/example/src/gpufont/font.hpp @@ -141,6 +141,7 @@ class Font { // If hinting is enabled, worldSize must be an integer and defines the font size in pixels used for hinting. // Otherwise, worldSize can be an arbitrary floating-point value. Font(FT_Face face, float worldSize = 1.0f, bool hinting = false) : face(face), worldSize(worldSize), hinting(hinting){ + // TODO: modularize init, so we can initialize with settings and text if(hinting){ loadFlags = FT_LOAD_NO_BITMAP; @@ -291,6 +292,7 @@ class Font { } void prepareGlyphsForText(const std::string & text){ + // TODO: do not duplicate glyphs bool changed = false; for(const char * textIt = text.c_str(); *textIt != '\0';){ diff --git a/example/src/ofApp.cpp b/example/src/ofApp.cpp index 306c3a2..419b831 100644 --- a/example/src/ofApp.cpp +++ b/example/src/ofApp.cpp @@ -35,11 +35,11 @@ bla bla bla //-------------------------------------------------------------- void ofApp::setup(){ mainText_full = "A"; - mainText_full = R"DONE(abcdefghijklmnopqrstuvqxyz + mainText = R"DONE(abcdefghijklmnopqrstuvqxyz ABCDEFGHIJKLMNOP)DONE"; //QRSTUVWXYZ //0123456789",.!@#$%^&*()_+=-[]{})DONE"; - mainText = R"DONE(Some things are hard to write about. Take soil, + mainText_full = R"DONE(Some things are hard to write about. Take soil, for instance. Soil, Oxford dictionary reads, “is the upper layer of earth in which plants grow, a black or dark brown material typically consisting of a mixture