<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px">> 2017-02-15 12:27 GMT-02:00 Jonathan Wilkes via Pd-list <span dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_3558"><<a rel="nofollow" shape="rect" ymailto="mailto:pd-list@lists.iem.at" target="_blank" href="mailto:pd-list@lists.iem.at" id="yui_3_16_0_ym19_1_1487174411023_3557">pd-list@lists.iem.at</a>></span>:<br clear="none"><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1487174411023_3208" style="display: block;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1487174411023_3207"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1487174411023_3206"><div class="y_msg_container" id="yui_3_16_0_ym19_1_1487174411023_3256"><div id="yiv0020795225"><div id="yui_3_16_0_ym19_1_1487174411023_3283"><div dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_3282"><div class="yiv0020795225gmail_extra" id="yui_3_16_0_ym19_1_1487174411023_3281"><div class="yiv0020795225yqt2557629492" id="yiv0020795225yqtfd93233"><div class="yiv0020795225gmail_quote" id="yui_3_16_0_ym19_1_1487174411023_3280"><blockquote class="yiv0020795225gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" id="yui_3_16_0_ym19_1_1487174411023_3279"><div id="yui_3_16_0_ym19_1_1487174411023_3278"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym19_1_1487174411023_3277"><div class="yiv0020795225m_-1836780613359172224yahoo_quoted" id="yiv0020795225m_-1836780613359172224yui_3_16_0_ym19_1_1487167749348_5904" style="display:block;"><div id="yiv0020795225m_-1836780613359172224yui_3_16_0_ym19_1_1487167749348_5903" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv0020795225m_-1836780613359172224yui_3_16_0_ym19_1_1487167749348_5902" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv0020795225m_-1836780613359172224y_msg_container" id="yiv0020795225m_-1836780613359172224yui_3_16_0_ym19_1_1487167749348_5931"><span class="yiv0020795225"></span><div id="yiv0020795225m_-1836780613359172224yui_3_16_0_ym19_1_1487167749348_6237"><br clear="none"></div><div id="yiv0020795225m_-1836780613359172224yui_3_16_0_ym19_1_1487167749348_6414">A program can essentially either resize fonts to fit hard-coded box sizes, or it can resize boxes to fit the fonts.  Pd Vanilla does the latter.</div></div></div></div></div></div></div></blockquote><div id="yui_3_16_0_ym19_1_1487174411023_3284"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1487174411023_3285"><div id="yui_3_16_0_ym19_1_1487174411023_3498">> And Purr Data does the former, right?</div><div id="yui_3_16_0_ym19_1_1487174411023_3287"><br></div><div id="yui_3_16_0_ym19_1_1487174411023_3288">For DejaVu Sans Mono, yes.  But that's because I hard-coded font-size scaling factors known to work with the four font stacks: Windows, <br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_3499">OSX, old-school sane Gnu, and new-school outlier Gnu.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_3500"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_3501">I'm currently checking for the new-school Gnu fonts by measuring a test-case at startup.  That can be revised to find the best fit for an <br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_3502">arbitrary font per box size, but it hasn't been done (or tested) yet.<br></div></div><div id="yui_3_16_0_ym19_1_1487174411023_3286"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1487174411023_3562"><div id="yui_3_16_0_ym19_1_1487174411023_3516">> I think the first option is obviously safer. This issue is important in Pd as it is a visual programming language, it needs to be consistent <br></div><div id="yui_3_16_0_ym19_1_1487174411023_3559">in my opinion, what are the challenges involved in making this change?</div><div id="yui_3_16_0_ym19_1_1487174411023_9727"><br></div><div id="yui_3_16_0_ym19_1_1487174411023_9728">The challenge is figuring out if fit_font_into_metrics from pd-gui.tcl is broken.  If not, then figuring out why it isn't decipherable <br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_11086">by human beings.</div><div dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487174411023_11101">-Jonathan<br></div><div id="yui_3_16_0_ym19_1_1487174411023_3564"><br clear="none"></div></div><div id="yui_3_16_0_ym19_1_1487174411023_8484">> cheers</div></div></div></div></div></div></div><br><br></div> </div> </div>  </div></div></body></html>