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 northwest corner but the entire rectangle, which depends on font size.
Anyway, yes, I'm fixing a couple of bugs and will change that -- it sounds quite safe to me. cheers Miller On Sun, Feb 19, 2012 at 09:18:00AM -0800, Peter Brinkmann wrote: > 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: > http://noisepages.com/groups/pd-everywhere/forum/topic/any-issues-with-subpatches/ > > This raises a couple of questions: First, why does any part of the > code look at font properties at all when nogui is set? Second, how do > we fix this? > > I suppose the best solution would be to make sure that font properties > are never queried when nogui is set. In the meantime, a quick fix > might be to modify the initialization of sys_fontlist (s_main.c, lines > 126-128), setting fi_hostfontsize, fi_width, and fi_height equal to > one. Any thoughts would be appreciated! > Cheers, > Peter > > _______________________________________________ > Pd-dev mailing list > Pd-dev@iem.at > http://lists.puredata.info/listinfo/pd-dev _______________________________________________ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev