<div dir="ltr">Thanks! I'll have a look when the modifications will be on the GitHub repository. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-16 3:32 GMT+02:00 Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Anyhow I just pushed a fix so that functions like sys_fontwidth() never<br>
report less than one pixel - this should get rid of divides by zero<br>
without having to call sys_fakefromgui().<br>
<br>
cheers<br>
<span class="HOEnZb"><font color="#888888">M<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sat, Jul 15, 2017 at 10:56:09PM +0200, Pierre Guillot wrote:<br>
> Yes, I think that's the first case but I surely need to better understand<br>
> this part of the code. In fact, I have no idea what is considered as part<br>
> of the GUI or not... I mean, in my case, I don't really have a graphical<br>
> interface but I would like to get the informations of the objects that<br>
> depends on the font sizes. If I don't call sys_fakefromgui(), I get a<br>
> division by zero somewhere because the font sizes are not initialized (and<br>
> perhaps there are other errors but I don't reach these parts of the code).<br>
> Anyway with the previous version of Pd I didn't have to call this function<br>
> so didn't really look at that but now I would like to know what it really<br>
> does and if there is a proper way to initialize this part of Pd.<br>
><br>
> Thanks!<br>
> Pierre<br>
><br>
><br>
> 2017-07-15 19:36 GMT+02:00 Miller Puckette <<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>>:<br>
><br>
> > Do I understand correctly that you're trying to run libpd _without_ the<br>
> > GUI and discovering that you have to copy code from sys_fakefromgui() to<br>
> > get it to work?<br>
> ><br>
> > Or, rather, are you actually trying to start the GUI up and need to know<br>
> > the path to the GUI files?<br>
> ><br>
> > In the latter case, I was tacitly assuming that people distributing libpd<br>
> > apps that wanted to be able to use Pd's GUI would bundle the entire Pd<br>
> > GUI package (Wish, pd/tcl, pd/po, probably more) with their installation,<br>
> > as different libpd apps might require different versions.<br>
> ><br>
> > cheers<br>
> > Miller<br>
> ><br>
> > On Sat, Jul 15, 2017 at 04:30:16PM +0200, Pierre Guillot wrote:<br>
> > > Hi all,<br>
> > ><br>
> > > I started to update my project zpd [1] with the last version of Pd<br>
> > (before<br>
> > > testing the new features in libpd) but I don't really understand how the<br>
> > > function sys_startgui() should be used and what it does [2] . In the<br>
> > > Miller's branch of libpd, the example [3] use a relative path but I don't<br>
> > > know what is the path to my application and what should be the target of<br>
> > > the path. I asked on GitHub and Dan explained me that I should give the<br>
> > > path to the tcl scripts to start the Pd GUI but what if I don't have Pd<br>
> > > installed? The solution I found for the moment is to copy the static<br>
> > > function sys_fakefromgui() [4] but it's dirty and not very sustainable.<br>
> > ><br>
> > > Anyone has a solution?<br>
> > > Best,<br>
> > ><br>
> > > Pierre<br>
> > ><br>
> > > [1] <a href="https://github.com/pierreguillot/zpd" rel="noreferrer" target="_blank">https://github.com/<wbr>pierreguillot/zpd</a><br>
> > > [2] <a href="https://github.com/pure-data/pure-data/blob/master/src/s_" rel="noreferrer" target="_blank">https://github.com/pure-data/<wbr>pure-data/blob/master/src/s_</a><br>
> > inter.c#L1377<br>
> > > [3]<br>
> > > <a href="https://github.com/libpd/libpd/pull/171/files/" rel="noreferrer" target="_blank">https://github.com/libpd/<wbr>libpd/pull/171/files/</a><br>
> > ddd6ef004c00ca41f1834fcb5bf5f7<wbr>2f972bc20d..<wbr>35e4272a2c3ba610836fa4cdff3bea<br>
> > 99dac815fb#diff-<wbr>44ec7e62314f045847d1166bd74411<wbr>b5R77<br>
> > > [4]<br>
> > > <a href="https://github.com/libpd/libpd/pull/171/files/" rel="noreferrer" target="_blank">https://github.com/libpd/<wbr>libpd/pull/171/files/</a><br>
> > ddd6ef004c00ca41f1834fcb5bf5f7<wbr>2f972bc20d..<wbr>35e4272a2c3ba610836fa4cdff3bea<br>
> > 99dac815fb#diff-<wbr>44ec7e62314f045847d1166bd74411<wbr>b5R77<br>
> ><br>
> > > ______________________________<wbr>_________________<br>
> > > Pd-dev mailing list<br>
> > > <a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
> > > <a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-dev</a><br>
> ><br>
> ><br>
<br>
> ______________________________<wbr>_________________<br>
> Pd-dev mailing list<br>
> <a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
> <a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-dev</a><br>
<br>
</div></div></blockquote></div><br></div>