[PD-dev] fontwidth and nogui

Peter Brinkmann peter.brinkmann at googlemail.com
Sun Feb 19 18:18:00 CET 2012


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



More information about the Pd-dev mailing list