blob: 10777c88a327f0f4c4f31c2c533be454c47b3680 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
#N canvas 91 80 650 590 10;
#X text 54 30 Class: geometric object;
#X obj 465 65 cnv 15 170 270 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 465 342 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 470 381 pd gemwin;
#X msg 470 362 create;
#X text 466 341 Create window:;
#X obj 7 65 cnv 15 450 220 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 335 cnv 15 450 180 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 340 Inlets:;
#X obj 8 295 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 294 Arguments:;
#X text 304 2 GEM object;
#X text 27 352 Inlet 1: gemlist;
#X text 9 476 Outlets:;
#X text 21 489 Outlet 1: gemlist;
#X text 471 47 Example:;
#X obj 468 112 cnv 15 150 220 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 479 68 gemhead;
#X floatatom 516 287 5 0 100 1 size - -, f 5;
#X msg 489 152 font \$1;
#X obj 489 133 openpanel;
#X obj 489 116 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 497 178 text hello world!;
#X msg 501 197 1 2 3 4;
#X msg 505 238 alias \$1;
#X obj 505 220 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 7 69 Description: Renders a line of text;
#X text 63 306 initial text (defaults to "gem");
#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 506 264 justify left base;
#X text 10 94 [text2d] renders one line of a text with the current
color \, but without(!) 3D-transformation;
#X obj 479 89 translateXYZ;
#X floatatom 583 72 5 -10 10 0 - - -, f 5;
#X floatatom 542 67 3 -3.5 3.5 0 - #0-X -, f 3;
#X text 27 366 Inlet 1: message: font <.TTF-file> : load a TrueType-font
;
#X text 27 380 Inlet 1: message: text [<blah>] : render the given text
;
#X text 27 393 Inlet 1: message: list [<blah>] : render the given text
;
#X text 27 406 Inlet 1: message: alias 1|0 : anti-aliasing on/off;
#X text 27 421 Inlet 1: message: justify <hor> [<vert>] : horizontal&vertical
justification;
#X obj 479 308 text2d;
#X text 27 450 Inlet 2: float: size (in points) \; default: 20;
#X obj 30 531 cnv 15 400 40 empty empty empty 20 12 0 14 -261681 -66577
0;
#X text 43 535 Note: on some systems it might be necessary to turn
rendering ON before loading a font.;
#X text 33 14 Synopsis: [text2d];
#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 obj 538 420 text3d;
#X text 468 419 see also:;
#X obj 538 443 textextruded;
#X obj 538 466 textoutline;
#X obj 30 591 cnv 15 400 40 empty empty empty 20 12 0 14 -260097 -66577
0;
#X text 43 595 Note2: The text will disappear completely once the pivot
point of the text moves out of the window;
#X obj 459 591 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#N canvas 69 240 450 369 disappearing 0;
#X obj 43 27 inlet;
#X obj 43 266 s \$0-X;
#X obj 43 92 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 43 116 pack 0 1000;
#X obj 43 238 line;
#X obj 43 70 metro 1000;
#X obj 43 138 t f f;
#X obj 43 208 pack 0 1000;
#X obj 43 160 * 1;
#X obj 43 183 - 4.2;
#X obj 43 49 t f f;
#X obj 127 70 select 0;
#X msg 127 92 0;
#X connect 0 0 10 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 4 0 1 0;
#X connect 5 0 2 0;
#X connect 6 0 8 0;
#X connect 7 0 4 0;
#X connect 8 0 9 0;
#X connect 9 0 7 0;
#X connect 10 0 5 0;
#X connect 10 1 11 0;
#X connect 11 0 12 0;
#X connect 12 0 7 0;
#X restore 459 611 pd disappearing text;
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 17 0 33 0;
#X connect 18 0 41 1;
#X connect 19 0 41 0;
#X connect 20 0 19 0;
#X connect 21 0 20 0;
#X connect 22 0 41 0;
#X connect 23 0 41 0;
#X connect 24 0 41 0;
#X connect 25 0 24 0;
#X connect 31 0 41 0;
#X connect 33 0 41 0;
#X connect 34 0 33 3;
#X connect 35 0 33 1;
#X connect 53 0 54 0;
|