From 1c028295bcf87c3f1c039d28cfbe59db1661be4e Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 20 Apr 2023 09:41:32 +0100 Subject: debugging text --- nextus/src/vectorPlugin.h | 5 +++-- nextus/src/vectorText.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'nextus/src') 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 getLines(){ + vector getLines(){ vector shapes=text.getOutlines(text_scale,STYLE_OVERLAPPING,0,0,enable_anim,anim_rev,vert_spread,use_beat,beat_duration); //ofLog()<<"text returned "<& 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 "<