summaryrefslogtreecommitdiff
path: root/nextus
diff options
context:
space:
mode:
authorTim Redfern <redfernt@gmail.com>2023-04-20 09:41:32 +0100
committerTim Redfern <redfernt@gmail.com>2023-04-20 09:41:32 +0100
commit1c028295bcf87c3f1c039d28cfbe59db1661be4e (patch)
tree5384d3fa0f660719c812985ba9d09f1d21a3b095 /nextus
parentcfd0496ac0ee9120c4bcb6a19ee6dcb2071ebc85 (diff)
debugging text
Diffstat (limited to 'nextus')
-rw-r--r--nextus/src/vectorPlugin.h5
-rw-r--r--nextus/src/vectorText.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/nextus/src/vectorPlugin.h b/nextus/src/vectorPlugin.h
index 55027c9..00e38aa 100644
--- a/nextus/src/vectorPlugin.h
+++ b/nextus/src/vectorPlugin.h
@@ -189,15 +189,16 @@ class textPanel: public vectorPanel{
panel.add(beat_duration.set("duration factor", 0.5f, 0.0f, 1.0f));
panel.add(text_speed.set("speed", 5.0f, 0.0f, 25.0f));
panel.add(text_scale.set("scale", 0.1f, 0.0f, 0.5f));
- panel.add(enable_anim.set("animate", false));
+ panel.add(enable_anim.set("animate", true));
panel.add(anim_rev.set("reverse", false));
panel.add(vert_pos.set("vert_pos", 0.0f, -0.3f, 0.3f));
panel.add(vert_spread.set("vert_spread", 0.0f, -0.3f, 0.3f));
+ text.loadFont("fonts/EMSOsmotron.svg");
}
void update(){
text.update();
}
- vector<colourPolyline> getLines(){
+ vector<colourPolyline> getLines(){
vector<colourPolyline> shapes=text.getOutlines(text_scale,STYLE_OVERLAPPING,0,0,enable_anim,anim_rev,vert_spread,use_beat,beat_duration);
//ofLog()<<"text returned "<<shapes.size()<<" lines";
return shapes;
diff --git a/nextus/src/vectorText.h b/nextus/src/vectorText.h
index bc74ddc..153e363 100644
--- a/nextus/src/vectorText.h
+++ b/nextus/src/vectorText.h
@@ -313,6 +313,7 @@ public:
}
}
}
+ ofLog()<<"update: word "<<theword<<" ,segment "<<segment;
}
vector<colourPolyline>& getOutlines(float s=1.0f,int style=STYLE_SENTENCE,float x=0,float y=0,bool anim=false,bool reverse=false, float vert_spread=0.0f, bool use_beat=false, float beat_duration=0.0f){
outlines.clear();
@@ -361,6 +362,7 @@ public:
break;
}
}
+ ofLog()<<"outlines for "<<words.size()<<" words: "<<outlines.size()<<" lines";
return outlines;
}
}; \ No newline at end of file