[PD] Pd-extended 0.41.4 release candidate 1

Jeff Sandys sandysj at juno.com
Sun May 17 06:25:57 CEST 2009


This change kind of works for me.  Using: Fedora Core 9/i386: 
Pd-0.41.4-extended-rc1-planetccrma9-i386.tar.bz2 with
Fedora 10 and 2.6.26.8-1.rt16.1.fc10.ccrma.i686.rt kernel.
The install per your instructions ran quickly with no problems.

The default font size 12 is noticeably smaller than font size 12 
in the editor or terminal, more like size 9.
The relation of box size to font size is uneven, size 10, 12 & 16, 
just fits, but size 8, 24 & 36 have extra space between the end of 
the text and the box, and size 8 font is impossibly small to read.

Why does the tk program list 10 different sizes when the 
pd font choice box only lists 6 (size 8 10 12 16 24 36)?
What (or where) is the relation between this foreach and 
the pd font selection dialog?

-- Jeff

> OK, I got the font size fixed! If I change the foreach 
> (at line 3944) in pd.tk from:
>
>    foreach i {8 9 10 12 14 16 18 24 30 36} {
>
> to:
>
>    foreach i {4 6 8 9 10 12 14 16 18 24} {
>
> The text stays withing the object boxes. Exactly what is 
> happening here I don't know. I have to analyze further 
> to find out what's going on.
>
> Cheers,
> 
> Hector
>
>
> On Fri, May 15, 2009 at 11:30 AM, Hans-Christoph Steiner 
> <hans at at.or.at> wrote:
>>
>> I am guessing that you could do some font sizing like is 
>> in pd-devel 0.41.  Check out pdtk_pd_startup in 
>> pd/src/u_main.tk.  There you can find the font measuring 
>> code.  Basically, it is mapping a font to Pd's font size 
>> numbers:
>>
>>    foreach i {8 9 10 12 14 16 18 24 30 36} {
>>        set font [format {{%s} %d %s} $fontname_from_pd $i
>> $fontweight_from_pd]
>>        set pd_fontlist [linsert $pd_fontlist 100000 $font]
>>        set width0 [font measure  $font x]
>>        set height0 [lindex [font metrics $font] 5]
>>        set fontlist [concat $fontlist $i [font measure  $font x] \
>>                          [lindex [font metrics $font] 5]]
>>    }
>>
>>
>> .hc
>>


____________________________________________________________
Free info for small business owners.  Click here to find great products geared for your business.
http://thirdpartyoffers.juno.com/TGL2131/fc/BLSrjnsHcQa0x9kEIdgJvCbcDpmJIreX2fwQ5UEFERbrb2njCnP2tlp7OOM/




More information about the Pd-list mailing list