add TODO's
This commit is contained in:
parent
c37729e0ba
commit
3be6c9ddb5
2 changed files with 4 additions and 2 deletions
|
@ -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';){
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue