From 3be6c9ddb58eec645f20a0f601703e09f9e09093 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Tue, 4 Apr 2023 09:39:54 +0200 Subject: [PATCH] add TODO's --- example/src/gpufont/font.hpp | 2 ++ example/src/ofApp.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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