&gt; You need to specify the point or pixel size as part of the font:<br>
&gt; $tkcanvas itemconfigure text -fill red -font {Helvetica 16}  ;# points<br>
&gt; $tkcanvas itemconfigure text -fill red -font {Helvetica -16}  ;# negative is<br>
&gt; pixels<br><br>ah thats helpful thank you!<br><br>it might be too much but how about turning on/off gui-plugins directly from a patch by sending messages to pd?<br><br>also i did something like:<br><br> proc RandomInteger1 {max} {<br>
         return [expr {int(rand()*$max) + 1}]<br> }<br><br>to randomize font size etc. right now when i open my patch i have to click on and off the patch to refresh.... is there just a refresh pd command i can send so i count refresh with a metro for example to create little animated randomized object boxes?<br>
<br>i thought you could send a [;pd refresh{ or something like that but i cant find it. am i crazy?<br><br>m<br><br><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 4:30 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Pd uses almost all of the available widgets in Tk:<br>
<a href="http://www.tcl.tk/man/tcl8.5/Keywords/W.htm#widget" target="_blank">http://www.tcl.tk/man/tcl8.5/Keywords/W.htm#widget</a><br>
<br>
The &#39;text&#39; widget doesn&#39;t respond to -size:<br>
<a href="http://www.tcl.tk/man/tcl8.5/TkCmd/text.htm" target="_blank">http://www.tcl.tk/man/tcl8.5/TkCmd/text.htm</a><br>
<br>
You need to specify the point or pixel size as part of the font:<br>
$tkcanvas itemconfigure text -fill red -font {Helvetica 16}  ;# points<br>
$tkcanvas itemconfigure text -fill red -font {Helvetica -16}  ;# negative is<br>
pixels<br>
<br>
You can also create a &#39;font&#39; to have that setting in one spot:<br>
<a href="http://www.tcl.tk/man/tcl8.5/TkCmd/font.htm" target="_blank">http://www.tcl.tk/man/tcl8.5/TkCmd/font.htm</a><br>
<br>
Please add anything you find useful to the wiki:<br>
<a href="http://puredata.info/docs/guiplugins/GUIPlugins/" target="_blank">http://puredata.info/docs/guiplugins/GUIPlugins/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
.hc<br>
</font></span><div class="im HOEnZb"><br>
On 01/24/2013 04:06 PM, me.grimm wrote:<br>
&gt; i finally have a chance to play around with the gui-plugin stuff. using<br>
&gt; &quot;tkcanvas itemconfigure&quot; im playing around with changing the look of my<br>
&gt; patches in performance mode. question: is there a list / documentation of<br>
&gt; the gui elements? other than reading over the pd-gui tcl code?<br>
&gt;<br>
&gt; without knowing much i was doing things like:<br>
&gt;<br>
&gt; $tkcanvas itemconfigure text -fill red -font Helvetica -size 16<br>
&gt;<br>
&gt; but -size gives me error<br>
&gt;<br>
&gt; so maybe there is something more other than a trial and error approach or<br>
&gt; use of css knowledge which obviously does not completely translate.<br>
&gt;<br>
&gt;<br>
&gt; m<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>____________________<br>m.e.grimm | m.f.a | ed.m.<br><a href="mailto:megrimm@gmail.com" target="_blank">megrimm@gmail.com</a><br>_________________________________