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.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
On May 15, 2009, at 10:18 AM, Hector Centeno wrote:
Thanks to all for your replies,
I found that page about font size and Tcl/Tk 8.5 last night and started looking for some 8.4 packages for OpenSuse but couldn't find anything. OpenSuse 11.1 is the same as Fedora 10, they moved to 8.5 and there are no 8.4 packages (I remember Ubuntu being better for providing older versions). I wonder if we could look into pd's code to try to fix this with 8.5, any ideas where I could start looking?
Cheers,
Hector
On Fri, May 15, 2009 at 12:02 AM, Hans-Christoph Steiner hans@at.or.at wrote:
The text sticking out of the boxes is usually caused by Tcl/Tk 8.5:
http://puredata.info/docs/faq/on-gnu-linux-the-fonts-are-strange-and-or-too-...
The pidip error is really just a warning. I think you can set a font then it'll work. Otherwise, check out the source files for the two text objects, you'll see the default location is:
imlib_add_path_to_font_path("/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType");
.hc
On May 14, 2009, at 9:19 PM, Hector Centeno wrote:
base64 problem solved. The package tcllib was needed. The only prblems left are with pdip not finding the fonts and with the text sticking out of the object boxes.
Cheers,
Hector
On Thu, May 14, 2009 at 9:14 PM, Hector Centeno hcengar@gmail.com wrote:
OK, I tried setting the font size using the -font-size flag but even with small font somehow the size of the object box doesn't scale properly and the text still sticks out. Also I'm getting this error in the terminal:
can't find package base64
Thanks,
Hector
On Thu, May 14, 2009 at 9:01 PM, Hector Centeno hcengar@gmail.com wrote:
OK, it seems that I got it to build in OpenSuse 11.1 and it seems that it was much less effort than when I did it on OpenSuse 11. I only had to hack one of the make files (the one for tclpd). Now the problems I'm having are:
PiDiP : additional video processing objects for PDP version 0.12.23 ( ydegoyon@free.fr ) error: [pdp_text] error: could not load default font, no text rendering! install Bitstream Vera, it's free! (http://www.gnome.org/fonts/) error: [pdp_qtext] error: could not load default font, no text rendering! install Bitstream Vera, it's free! (http://www.gnome.org/fonts/)
I have Bitstream Vera installed in /usr/share/fonts/truetype, do I have to copy them somewhere else?
Also the font in in the pd gui is too big so the text entered inside the objects doesn't fit inside the object boxes.
Once I have this things sorted out I will post in the pd wiki a short review about building pd in OpenSuse including a list of required packages.
Cheers,
Hector
On Thu, May 14, 2009 at 3:41 PM, Hans-Christoph Steiner hans@at.or.at wrote: > > I don't know SUSE at all, so I won't set it up, but I am happy to > help > someone else get the builds running on a SUSE machine. Do you have > one > to > offer? It doesn't need to be fast, just working. Most of the build > farm > are 733Mhz machines from '98, for example. :) Also, it would be good > if you > documented the build process on the wiki so others can follow it: > > http://puredata.info/docs/developer/FrontPage/createform?page=SUSE > > You can see the Debian or Fedora page for an example: > > http://puredata.info/docs/developer/Debian > http://puredata.info/docs/developer/Fedora > > As for a source tarball, I haven't made one... but you can get the > whole > thing from svn easily enough: > > svn co > > > https://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-extended... > > .hc > > On May 14, 2009, at 3:26 PM, Hector Centeno wrote: > >> Is there a URL for downloading this version's source? I'm using >> OpenSuse 11.1 so I have to build it from scratch. By the way, does >> anyone know about an OpenSuse repository for PD? Probably there are >> not enough resources already but is there any chance of including >> OpenSuse in the building farms? >> >> Cheers, >> >> Hector >> >> >> On Wed, May 13, 2009 at 8:49 PM, Hans-Christoph Steiner >> hans@at.or.at >> wrote: >>> >>> Ok, so this thing is just about ready to release! Please hammer on >>> it, >>> report any little bug or annoyance you might find to the bug >>> tracker! >>> You >>> can see some info about the included changes here: >>> >>> http://puredata.info/dev/NextRelease >>> >>> Windows and Debian/PowerPC builds coming soon.... >>> >>> http://at.or.at/hans/pd/installers.html >>> >>> .hc >>> >>> >>> >>> >>> ---------------------------------------------------------------------------- >>> >>> Mistrust authority - promote decentralization. - the hacker ethic >>> >>> >>> >>> _______________________________________________ >>> Pd-list@iem.at mailing list >>> UNSUBSCRIBE and account-management -> >>> http://lists.puredata.info/listinfo/pd-list >>> > > > > > > ---------------------------------------------------------------------------- > > All information should be free. - the hacker ethic > > > > >
I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler
Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies. - Amy Smith