<div class="markdown_content"><p>thanks for figuring out the problem.</p>
<p>anyhow: my opinion is that Gem is not at fault here. </p>
<p>Gem uses <a class="" href="http://ftgl.sf.net">FTGL</a> for font rendering (FTGL in turn uses libfreetype to decide the font), and it seems that it is really FTGL that is crashing.</p>
<p>doing a quick check with FTGLDemo (2.1.3~rc5) shows that FTGL is indeed crashing:<br />
  - start <code>./FTGLDemo /path/to/Beams.ttf</code><br />
  - (rendering seems to work though there are a lot of artefacts)<br />
  - type <kbd>Left</kbd> (<em>ARROW-LEFT</em> to decrease font-size)<br />
  - CRASH</p>
<p>alternatively running <code>./FTGLMFontDemo /path/to/Beams.ttf</code> immediately crashes.</p>
<p>the problem persists with the current SVN version of FTGL.</p>
<hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pd-gem/bugs/220/">[bugs:#220]</a> <span><span>[text3d]</span></span> crashes PD if the letter "p" is typed</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Created:</strong> Sun Dec 08, 2013 09:22 PM UTC by hellocatfood<br />
<strong>Last Updated:</strong> Mon Dec 30, 2013 04:29 AM UTC<br />
<strong>Owner:</strong> nobody</p>
<p>I'm using PD extednded 0.43.4 and have noticed that when using some fonts <span>[text3d]</span> will crash PD when a string with five or more characters is entered.</p>
<p>Font used is Beams: <a href="http://openfontlibrary.org/en/font/beams" rel="nofollow">http://openfontlibrary.org/en/font/beams</a></p>
<p>And the error returned is:</p>
<p><code>pd: ../src/libtess/priorityq.c:164: __gl_pqSortInit: Assertion `((((GLUvertex *)**(i+1))-&gt;s &lt; ((GLUvertex *)**i)-&gt;s) || (((GLUvertex *)**(i+1))-&gt;s == ((GLUvertex *)**i)-&gt;s &amp;&amp; ((GLUvertex *)**(i+1))-&gt;t &lt;= ((GLUvertex *)**i)-&gt;t))' failed.
Pd: signal 6</code></p>
<p>I using a Dell XPS 13 developer edition running Ubuntu 13.10 with Intel® Ivybridge Mobile graphics and Intel® Core™ i7-3537U CPU @ 2.00GHz × 4 processors</p>
<p>I've attached a patch and the font file for testing</p>
<hr />
<p>Sent from sourceforge.net because gem-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pd-gem/bugs/">https://sourceforge.net/p/pd-gem/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pd-gem/admin/bugs/options.">https://sourceforge.net/p/pd-gem/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>