#N canvas 547 139 647 697 10;
#X declare -lib Gem;
#X text 54 30 Class: geometric object;
#X obj 466 65 cnv 15 170 330 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X obj 466 451 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 7 65 cnv 15 450 220 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 8 336 cnv 15 450 190 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 9 341 Inlets:;
#X obj 8 295 cnv 15 450 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 294 Arguments:;
#X text 452 8 GEM object;
#X text 27 353 Inlet 1: gemlist;
#X text 9 476 Outlets:;
#X text 21 489 Outlet 1: gemlist;
#X text 472 47 Example:;
#X obj 469 112 cnv 15 150 220 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 472 68 gemhead;
#X floatatom 517 287 5 0 100 1 size - - 0;
#X msg 482 152 font \$1;
#X obj 482 133 openpanel;
#X obj 482 116 bng 15 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000;
#X msg 490 178 text hello world!;
#X msg 494 197 1 2 3 4;
#X text 7 69 Description: Renders a line of text;
#X text 63 306 initial text (defaults to "gem");
#X text 10 123 Any TrueType-font can be rendered. Per default a file "vera.ttf" is searched in the paths. If it is not found you will not see anything unless you load a valid font via the "font"-message. The font-loader uses Pd's search-paths \, so you could specify your path on the command-line and load fonts with just "font times.ttf".;
#X text 7 208 Justification:;
#X text 32 223 horizontal justification can be one of "left" \, "right" \, "center"(default) and "base"(none);
#X text 32 253 vertical justification can be one of "top" \, "bottom" \, "middle"(default) and "base"(none);
#X msg 489 224 justify left base;
#X floatatom 576 72 5 0 0 0 - - - 0;
#X floatatom 535 67 4 0 0 0 - - - 0;
#X text 27 367 Inlet 1: message: font <.TTF-file> : load a TrueType-font;
#X text 27 381 Inlet 1: message: text [<blah>] : render the given text;
#X text 27 394 Inlet 1: message: list [<blah>] : render the given text;
#X text 27 428 Inlet 1: message: justify <hor> [<vert>] : horizontal&vertical justification;
#X obj 472 89 rotateXYZ;
#X obj 20 583 cnv 15 400 40 empty empty empty 20 12 0 14 #fce0c0 #404040 0;
#X text 33 587 Note: on some systems it might be necessary to turn rendering ON before loading a font.;
#X obj 472 308 textextruded;
#X text 33 14 Synopsis: [textextruded];
#X msg 497 268 depth \$1;
#X floatatom 497 249 5 0 0 1 depth - - 0;
#X text 10 94 [textextruded] renders one line of a extruded text with the current color \, and all 3D-transformation;
#X text 27 408 Inlet 1: message: depth <float> : extrusion depth;
#X obj 20 628 cnv 15 400 40 empty empty empty 20 12 0 14 #fce0c0 #404040 0;
#X text 32 633 Note: GEM needs to be compiled with FTGL-support for this to work;
#X text 472 528 see also:;
#X obj 545 528 text2d;
#X obj 592 528 text3d;
#X text 27 457 Inlet 2: float: size (in points). (default:20);
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION Renders a line of text;
#X text 10 65 KEYWORDS Gem openGL shape;
#X text 20 85 INLET_0 gemlist font text list depth justify;
#X text 20 105 INLET_1 float;
#X text 20 125 OUTLET_0 gemlist;
#X text 10 145 AUTHOR IOhannes m zmölnig;
#X text 10 165 LICENSE GPL-2.0-or-later;
#X restore 531 8 pd META;
#X obj 20 537 cnv 15 400 40 empty empty empty 20 12 0 14 #fce0c0 #404040 0;
#X text 33 541 Note: changing the fontsize will re-generate the glyphs \, which can be slow. [scale] is much faster.;
#X obj 472 454 _gemwin;
#X text 20 504 Outlet 2: information about the text;
#N canvas 15 180 585 372 more_informations 0;
#X text 33 24 for now the outlet 2 outputs for each frame :;
#X text 45 47 - ascender : size over the pivot point (pixels);
#X text 45 66 - descender : size under the pivot point (pixels);
#X text 45 85 - bbox : bounding box of the text;
#X text 59 103 (x1 \, y1 \, z1 \, x2 \, y2 \, z2);
#X text 41 126 - bboxline : line number + bounding box of this specific line, f 62;
#X restore 261 503 pd more_informations;
#X obj 472 337 color 1 0 0;
#X obj 472 358 _textbbox \; width 2;
#X obj 552 361 - 1;
#X obj 552 338 tgl 18 0 empty empty empty 0 -9 0 10 #fcfcfc #000000 #000000 0 1;
#X connect 14 0 34 0;
#X connect 15 0 37 1;
#X connect 16 0 37 0;
#X connect 17 0 16 0;
#X connect 18 0 17 0;
#X connect 19 0 37 0;
#X connect 20 0 37 0;
#X connect 27 0 37 0;
#X connect 28 0 34 3;
#X connect 29 0 34 1;
#X connect 34 0 37 0;
#X connect 37 0 55 0;
#X connect 37 1 56 1;
#X connect 39 0 37 0;
#X connect 40 0 39 0;
#X connect 55 0 56 0;
#X connect 57 0 56 2;
#X connect 58 0 57 0;
