<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>More:</div>
<div><br>
</div>
<div>For this test i used  “twapi-bin-4.1.27.zip ” and extracted it to pd\lib.</div>
<div><br>
</div>
<div><br>
</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature"><font face="Courier New, Courier, Monospace" size="2">Mensaje telepatico asistido por maquinas.</font>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Pd-list <pd-list-bounces@lists.iem.at> on behalf of Lucas Cordiviola <lucarda27@hotmail.com><br>
<b>Sent:</b> Monday, February 13, 2017 4:40 PM<br>
<b>To:</b> Dan Wilcox; Miller Puckette<br>
<b>Cc:</b> Pd-List<br>
<b>Subject:</b> Re: [PD] cross platforms issues with displaying fonts in vanilla but not in Purr Data</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>Ok,</div>
<div><br>
</div>
<div>Following Dan`s suggestion to ship & use a font without installing it, I came to a very straight-forward method for w32.</div>
<div><br>
</div>
<div>Tested & working.</div>
<div><br>
</div>
<div>It uses a Tcl Windows API extension. (600KB)</div>
<div><br>
</div>
<div>twapi web:</div>
<div><a href="http://twapi.sourceforge.net/v4.1/installation.html" id="LPlnk926578" previewremoved="true">http://twapi.sourceforge.net/v4.1/installation.html</a></div>
<br>
<div><br>
</div>
<div>twapi package:</div>
<div><a href="https://sourceforge.net/projects/twapi/files/Current%20Releases/Tcl%20Windows%20API/twapi-4.1.27/" id="LPlnk843230" previewremoved="true">https://sourceforge.net/projects/twapi/files/Current%20Releases/Tcl%20Windows%20API/twapi-4.1.27/</a></div>
<br>
<div><br>
</div>
<div>added lines on "pd-gui.tcl" @line 24:</div>
<div><br>
</div>
<div># adding dejavu fonts on mswindows</div>
<div>package require twapi</div>
<div>twapi::AddFontResourceEx DejaVuSansMono.ttf</div>
<div>twapi::AddFontResourceEx DejaVuSansMono-Bold.ttf</div>
<div><br>
</div>
<div>0000000</div>
<div><br>
</div>
<div>Don't know how to exclude this "package require" for the other OSs.</div>
<div>The .ttf were placed on pd/bin for simplicity.</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature"><font face="Courier New, Courier, Monospace" size="2">Mensaje telepatico asistido por maquinas.</font>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Dan Wilcox <danomatika@gmail.com><br>
<b>Sent:</b> Monday, February 13, 2017 5:06 AM<br>
<b>To:</b> Lucas Cordiviola<br>
<b>Cc:</b> Jonathan Wilkes; Alexandre Torres Porres; Pd-List; Miller Puckette<br>
<b>Subject:</b> Re: [PD] cross platforms issues with displaying fonts in vanilla but not in Purr Data</font>
<div> </div>
</div>
<div><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Feb 12, 2017, at 6:49 PM, Lucas Cordiviola <<a href="mailto:lucarda27@hotmail.com" class="">lucarda27@hotmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<blockquote class="" style="margin:0px 0px 0px 40px; border:none; padding:0px">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class=""><i class="">>Another issue is that, for many, the rendering of a bolded DVSM will simply look *ulgy* to those used to a normal-weight Monaco, especially if they never used an earlier version of Pd or Pd on Linux.</i></div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
</blockquote>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class=""><br class="">
</div>
<div class="">IMO the default cross platform font should NOT be Bold. As Dan said OSX users will most likely find it ugly, and it was not bold in Pd-extended nor is in Purr-Data.</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>I tested with bold as that is the default font weight for vanilla on Linux AFAICT.</div>
<br class="">
<blockquote type="cite" class="">
<div id="divtagdefaultwrapper" dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<blockquote class="" style="margin:0px 0px 0px 40px; border:none; padding:0px">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
</blockquote>
<blockquote class="" style="margin:0px 0px 0px 40px; border:none; padding:0px">
<blockquote class="" style="margin:0px 0px 0px 40px; border:none; padding:0px">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
</blockquote>
<blockquote class="" style="margin:0px 0px 0px 40px; border:none; padding:0px">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class=""><i class="">>>How difficult is to deploy DejaVu on Mac?</i></div>
<div class=""><i class=""><br class="">
</i></div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
</blockquote>
</blockquote>
<blockquote class="" style="margin:0px 0px 0px 40px; border:none; padding:0px">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class=""><i class="">>Typically, add a key to the app bundle Info.plist and include the font in the app bundle's Resource folder. This means the font does not have to be installed system- or user- wide but only used by the app itself. This assumes Tk’s
 handling of app bundles picks up on registered fonts from the plist (it should). </i></div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class=""><i class=""><br class="">
</i></div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class=""><i class="">>As for Windows, it looks like it’s possible to load a font that comes with the app (the Windows API alls this a:</i></div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
</blockquote>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class=""><br class="">
</div>
<div class=""><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms533820(v=vs.85).aspx" id="LPlnk364063" class="" previewremoved="true">https://msdn.microsoft.com/en-us/library/windows/desktop/ms533820(v=vs.85).aspx</a></div>
<div class=""><br class="">
</div>
<div class=""><a href="http://code.activestate.com/lists/tcl-core/8158/#sthash.qJEhQALT.dpuf" id="LPlnk558363" class="" previewremoved="true">http://code.activestate.com/lists/tcl-core/8158/#sthash.qJEhQALT.dpuf</a></div>
<div class=""><br class="">
</div>
<div class="">@Dan:</div>
<div class=""><br class="">
</div>
<div class="">The Tcl thing is just for Windows?</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Yes as it’s using the Window’s API.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="">Or Cross-platform?</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>No. See above.</div>
<div><br class="">
</div>
<div>I know the Mac solution. Deja Vu is usually installed on Linux systems and, if not, can be an install requirement by whatever package manager is being used. There is no need to distribute and install a copy of the font on Linux.</div>
</div>
<br class="">
<div class="">
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; 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; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; 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; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://twitter.com/danomatika" class="">@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; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://danomatika.com" class="">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; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://robotcowboy.com" class="">robotcowboy.com</a></div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>