[PD-dev] fontwidth and nogui

2012-02-19 Thread Peter Brinkmann
Hi, A recent thread on Pd Everywhere suggests that the function rtext_senditup in g_rtext.c sometimes divides by a font width. This causes occasional crashes because the font width may be 0 when running with the nogui flag:

Re: [PD-dev] fontwidth and nogui

2012-02-19 Thread Miller Puckette
It's hilarious - there's exactly one aspect of Pd run-time semantics that depends on screen location -- inlets/outlets of subpatches are numbered in left-to-right order on teh screen. To to thins someone has to call gobj_getrect() on the inlet/outlet, which then not only has to report the

Re: [PD-dev] fontwidth and nogui

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-19 à 10:05:00, Miller Puckette a écrit : It's hilarious - there's exactly one aspect of Pd run-time semantics that depends on screen location -- inlets/outlets of subpatches are numbered in left-to-right order on teh screen. To to thins someone has to call gobj_getrect() on the

Re: [PD-dev] fontwidth and nogui

2012-02-19 Thread Miller Puckette
That it's painful doesn't make it any less funny to me. It would take pages to explain the considerations that went, in 1987 or early 1988, into the decision to arrange inlets/outlets that way but the circumstances were quite different from today's - and seeing this particular unintended

Re: [PD-dev] fontwidth and nogui

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-19 à 10:30:00, Miller Puckette a écrit : That it's painful doesn't make it any less funny to me. CROC Magazine's motto was : « C'est pas parce qu'on rit que c'est drôle », in the sense that just because we laugh doesn't mean it's funny. pages to explain the considerations that

Re: [PD-dev] fontwidth and nogui

2012-02-19 Thread Hans-Christoph Steiner
On Feb 19, 2012, at 1:15 PM, Mathieu Bouchard wrote: Le 2012-02-19 à 10:05:00, Miller Puckette a écrit : It's hilarious - there's exactly one aspect of Pd run-time semantics that depends on screen location -- inlets/outlets of subpatches are numbered in left-to-right order on teh screen.

Re: [PD-dev] fontwidth and nogui

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-19 à 17:46:00, Hans-Christoph Steiner a écrit : I think that the order of the [inlet]s and [outlet]s on the screen matching the order of the inlets and outlets on the abstraction that patch creates is a wonderful idea, which is the only thing that makes it impossible to just move

Re: [PD-dev] fontwidth and nogui

2012-02-19 Thread Peter Brinkmann
Hi Miller, Thanks for taking care of this! I noticed one leftover zero in the initialization of sys_fontlist. I'm assuming that that's an oversight, and I changed it to one in the libpd repository. Cheers, Peter On Sun, Feb 19, 2012 at 1:05 PM, Miller Puckette m...@ucsd.edu wrote: It's