Hallo Gem-devs!
here is the first "demo".
Some questions:
- Is it okay to use STL ? It's quiet handy here ...
- you can control now the number of chars in a line with the [maxchar( message and if maxchar is 0 then there will be only one line with unlimited chars ... is that okay, and a good name for the message (i don't know ...)
- Right, Center, etc. is not working now - I guess I will have to play a little bit with the BBox ...
- only for FTGL now, is still someone using GLTT ? because it's hard to test here for me ...
and I also attached a simple test patch, with some explanation.
So should I make a seperate object for this, or put it to text2d or to TextBase (would be some work) - what do you think ?
LG Georg
#N canvas 692 194 677 494 10; #X obj 76 387 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577 0; #N canvas 0 0 450 300 gemwin 0; #X obj 132 136 gemwin; #X obj 67 89 outlet; #X obj 67 10 inlet; #X obj 67 41 route create; #X msg 67 70 set destroy; #X msg 142 68 set create; #X msg 198 112 destroy; #X msg 132 112 create , 1; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 3 0 7 0; #X connect 3 1 5 0; #X connect 3 1 6 0; #X connect 4 0 1 0; #X connect 5 0 1 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X restore 81 426 pd gemwin; #X msg 81 407 create; #X text 77 386 Create window:; #X text 95 36 Example:; #X obj 103 57 gemhead; #X floatatom 140 276 5 0 100 1 size - -; #X msg 277 61 text hello world!; #X msg 125 186 1 2 3 4; #X msg 129 227 alias $1; #X obj 129 209 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 103 78 translateXYZ; #X floatatom 207 61 5 -10 10 0 - - -; #X floatatom 166 56 3 -3.5 3.5 0 - - -; #X obj 103 297 text2d; #X msg 130 128 font helmetr.ttf; #X obj 130 105 loadbang; #X msg 273 131 text an other text; #X msg 273 159 text llk daiuh adhiah asdohua hu; #X msg 275 184 text asdfghjklsdfgsdfg; #X msg 317 310 maxchar $1; #X floatatom 316 289 5 0 0 0 - - -; #X msg 273 91 text gestern wars wieder ganz lustig und wir haben einen Donaudampfschifffahrtskapitaen umgebracht!; #X msg 130 253 justify left base; #X msg 319 400 linedist $1; #X floatatom 319 382 5 0 0 0 - - -; #X msg 276 210 text; #X text 282 34 some text:; #X text 310 265 max chars in a line; #X text 405 293 (is this a good name?); #X text 315 341 line distance:; #X text 335 357 1 = 1 line , 0.5 = half line , ...; #X connect 1 0 2 0; #X connect 2 0 1 0; #X connect 5 0 11 0; #X connect 6 0 14 1; #X connect 7 0 14 0; #X connect 8 0 14 0; #X connect 9 0 14 0; #X connect 10 0 9 0; #X connect 11 0 14 0; #X connect 12 0 11 3; #X connect 13 0 11 1; #X connect 15 0 14 0; #X connect 16 0 15 0; #X connect 17 0 14 0; #X connect 18 0 14 0; #X connect 19 0 14 0; #X connect 20 0 14 0; #X connect 21 0 20 0; #X connect 22 0 14 0; #X connect 23 0 14 0; #X connect 24 0 14 0; #X connect 25 0 24 0; #X connect 26 0 14 0;