<div dir="ltr">howdy, I'll insist here as well, again, I like that we're looking in to how to install the same fonts for all platforms, but I'm really concerned about patches not looking the same in vanilla and in Extended/Purr Data.<div><br></div><div>what are the challenges in making it not only work well in cross platforms, but also in this different pd flavors? </div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-14 9:35 GMT-02:00 Lucas Cordiviola <span dir="ltr"><<a href="mailto:lucarda27@hotmail.com" target="_blank">lucarda27@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_1301862510192588683divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p></p>
<p lang="en-US" style="margin-bottom:0in">Ok, cool.</p>
<p lang="en-US" style="margin-bottom:0in"><br>
</p>
<p lang="en-US" style="margin-bottom:0in">I add the previous code links here for us to remember:</p>
<p lang="en-US" style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in"><span lang="en-US"><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms533820(v=vs.85).aspx" id="m_1301862510192588683LPlnk897190" target="_blank">https://msdn.microsoft.com/en-<wbr>us/library/windows/desktop/<wbr>ms533820(v=vs.85).aspx</a></span><br>
</p>
<p lang="en-US" style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in"><font face="Calibri, Arial, Helvetica, sans-serif"><font size="3"><span lang="en-US"><a href="http://code.activestate.com/lists/tcl-core/8158/#sthash.qJEhQALT.dpuf" id="m_1301862510192588683LPlnk40033" target="_blank">http://code.activestate.com/<wbr>lists/tcl-core/8158/#sthash.<wbr>qJEhQALT.dpuf</a><a href="http://code.activestate.com/lists/tcl-core/8158/#sthash.qJEhQALT.dpuf" target="_blank"></a></span><br>
</font></font><span lang="en-US"></span></p><span class="">
<br>
<p></p>
<p><br>
</p>
<div id="m_1301862510192588683Signature"><font face="Courier New, Courier, Monospace" size="2">Mensaje telepatico asistido por maquinas.</font>
</div>
<br>
<br>
</span><div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_1301862510192588683divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Dan Wilcox <<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a>><br>
<b>Sent:</b> Monday, February 13, 2017 8:48 PM<br>
<b>To:</b> Lucas Cordiviola<br>
<b>Cc:</b> Miller Puckette; Pd-List<br>
<b>Subject:</b> Re: DejaVu Font: Shipping & using on W32</font>
<div> </div>
</div><div><div class="h5">
<div>
<div>Cool, good to know that in theory it works. I also found a related solution which uses a different extension do the same thing: <a href="http://wiki.tcl.tk/22262" id="m_1301862510192588683LPlnk374990" target="_blank">http://wiki.tcl.tk/<wbr>22262</a></div>
<div><br>
</div>
<div>However, I’d say that requiring a tcl/tk extension may not be the best overall solution since historically Pd has avoided requiring anything beyond the base tcl/tk.</div>
<div><br>
</div>
<div>A possible best approach is take the example C code for the forum post and make a *tiny* custom extension that is built only on Windows and loaded by the tk gui in order to load the private font. I don’t think we can simply add the font loading
 code to the core itself since it’s a separate process from the gui.</div>
<div><br>
</div>
<div>In any case, this is something I can look into after I put together a triple boot machine to test some things on different platforms, including the vanilla autotools build on win.</div>
<br>
<div>
<blockquote type="cite">
<div>On Feb 13, 2017, at 10:43 AM, Lucas Cordiviola <<a href="mailto:lucarda27@hotmail.com" target="_blank">lucarda27@hotmail.com</a>> wrote:</div>
<br class="m_1301862510192588683Apple-interchange-newline">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Following Dan`s suggestion to ship & use a font without installing it, I came to a very straight-forward method for w32.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Tested & working.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
It uses a Tcl Windows API extension. (600KB)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
twapi web:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://twapi.sourceforge.net/v4.1/installation.html" id="m_1301862510192588683LPlnk926578" target="_blank">http://twapi.sourceforge.net/<wbr>v4.1/installation.html</a></div>
<br style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
twapi package:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="https://sourceforge.net/projects/twapi/files/Current%20Releases/Tcl%20Windows%20API/twapi-4.1.27/" id="m_1301862510192588683LPlnk843230" target="_blank">https://sourceforge.net/<wbr>projects/twapi/files/Current%<wbr>20Releases/Tcl%20Windows%<wbr>20API/twapi-4.1.27/</a></div>
<br style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
added lines on "pd-gui.tcl" @line 24:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
# adding dejavu fonts on mswindows</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
package require twapi</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
twapi::AddFontResourceEx DejaVuSansMono.ttf</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
twapi::AddFontResourceEx DejaVuSansMono-Bold.ttf</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
0000000</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Don't know how to exclude this "package require" for the other OSs.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
The .ttf were placed on pd/bin for simplicity.</div>
</div>
</blockquote>
</div>
<br>
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
--------</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Dan Wilcox</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://twitter.com/danomatika" target="_blank">@danomatika</a></div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://danomatika.com" target="_blank">danomatika.com</a></div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a></div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<br class="m_1301862510192588683Apple-interchange-newline">
</div>
<br>
</div>
</div></div></div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div>