Re: [PD-dev] text placement

2007-01-17 Thread Frank Barknecht
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote: > One question I have is whether Pd really needs a monospaced font. It > looks quite good with Lucida Grande, which is proportional. I really prefer a monospaced default font even from an aesthetic point of view. [t

Re: [PD-dev] text placement

2007-01-16 Thread Miller Puckette
That's what Pd is supposed to be doing now (although for a fixed-pitch font...) so it would be easy enough to adapt to a variable one. The trouble I've always had is that I was never able to find any fonts at all that had similar sizes across platforms. Pd currently fishes around for the fint tha

Re: [PD-dev] text placement

2007-01-16 Thread Hans-Christoph Steiner
Maybe its possible to have Tk do all the sizing, then have pd query Tk to get the sizes. That would allow for the Tk scaling, which would be very nice to have because it keeps the all the layout relationships the same, it just zooms it. That'd be much more useful that different font siz

Re: [PD-dev] text placement

2007-01-16 Thread Miller Puckette
It's much more trouble to adapt Pd to use variable-width fonts, but totally possible. The trouble is the code that figures out where to put line breaks fitting text into boxes and then how big to make the box around the text. Not the end of the world, I don't think. cheers Miller On Tue, Jan 16

Re: [PD-dev] text placement

2007-01-16 Thread Hans-Christoph Steiner
It turns out that the fonts seem to vary quite a bit in their positioning... what a pain... I still think the way to handle this is to just set the boxes to pixel sizes, then let the fonts fall where they may. Too bad there isn't a free Lucida, or Inconsolata isn't done yet... I can't

Re: [PD-dev] text placement

2007-01-11 Thread Kyle Klipowicz
I agree that Lucida Grand is good. Keep up the good work on this, Pd craves beauty. ~Kyle On 1/10/07, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: Thanks much. I'll take a look. But now after fiddling with different fonts, it seems that its the fonts themselves that have different plac

Re: [PD-dev] text placement

2007-01-09 Thread Hans-Christoph Steiner
Thanks much. I'll take a look. But now after fiddling with different fonts, it seems that its the fonts themselves that have different placement. Bitstream Vera Sans Mono seems to be too high up. Lucida Grande looks much better: http://bam.idmi.poly.edu/~hans/pdfonts/ Since I am on t

Re: [PD-dev] text placement

2007-01-08 Thread martin.peach
. Or did you mean the contents of the boxes? static void *my_canvas_new(t_symbol *s, int argc, t_atom *argv) in g_mycanvas.c might be relevant... Martin > > From: Hans-Christoph Steiner <[EMAIL PROTECTED]> > Date: 2007/01/08 Mon PM 01:20:49 EST > To: PD List > Subject: [P

Re: [PD-dev] text placement

2007-01-08 Thread Miller Puckette
In g_rtext.c: sys_vgui("pdtk_text_new .x%lx.c %s %f %f {%.*s} %d %s\n", canvas, x->x_tag, dispx + LMARGIN, dispy + TMARGIN, outchars, tempbuf, sys_hostfontsize(font), (glist_isselected(x->x_glist, &x->x_glist->gl_gobj)? "blue"

[PD-dev] text placement

2007-01-08 Thread Hans-Christoph Steiner
Can anyone point me to where the text is placed on the canvas in relation to the object and message boxes? It seems to vary depending on platform and I'd like to troubleshoot it. .hc As we enjoy great advantages fro