<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1444245598946_3362">For the official record-- I'm holding my tongue, in the hopes that when others look at the code</div><div id="yui_3_16_0_1_1444245598946_3861" dir="ltr">in my GUI port they'll practice similar restraint.<br></div><div id="yui_3_16_0_1_1444245598946_3478"><br></div><div id="yui_3_16_0_1_1444245598946_3479">Ok, add this:</div><div id="yui_3_16_0_1_1444245598946_3539"><br></div><div dir="ltr" id="yui_3_16_0_1_1444245598946_3524">pdtk_post "for real this time-- the actual font we are sending to tk is: [set [get_font_for_size $font_size]]\n"</div><div id="yui_3_16_0_1_1444245598946_3495"><br></div><div id="yui_3_16_0_1_1444245598946_3860">-Jonathan<br></div><div id="yui_3_16_0_1_1444245598946_3496"><br></div><div id="yui_3_16_0_1_1444245598946_3363"><br></div><div id="yui_3_16_0_1_1444245598946_3364"><br></div><div id="yui_3_16_0_1_1444245598946_4000"><span></span></div>  <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, October 7, 2015 3:19 PM, katja <katjavetter@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">On Wed, Oct 7, 2015 at 8:37 PM, Jonathan Wilkes <<a shape="rect" ymailto="mailto:jancsika@yahoo.com" href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>> wrote:<br clear="none">> Silly me, I forgot this is Pd so it has to be way more complex than that...<br clear="none">><br clear="none">> Add this line to pdtk_text_new in pdtk_text.tcl:<br clear="none">><br clear="none">> pdtk_post "the actual font we are sending to tk is: [get_font_for_size<br clear="none">> $font_size]\n"<br clear="none">><br clear="none">> Now do the test I mentioned before.<br clear="none"><br clear="none">The answer is in both cases:<br clear="none"><br clear="none">"the actual font we are sending to tk is: ::pd_font_10"<div class="yqt8729453006" id="yqtfd25939"><br clear="none"><br clear="none"><br clear="none">> -Jonathan<br clear="none">><br clear="none">><br clear="none">><br clear="none">> On Wednesday, October 7, 2015 2:16 PM, Jonathan Wilkes via Pd-list<br clear="none">> <<a shape="rect" ymailto="mailto:pd-list@lists.iem.at" href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>> wrote:<br clear="none">><br clear="none">><br clear="none">> Hi katja,<br clear="none">><br clear="none">> Could you do a test?  Make a simple patch with a single object in it, and<br clear="none">> use the same canvas font size you did above.  Then run Pd with -d 3 flag and<br clear="none">> see what font size is actually being sent from Pd to the GUI on each distro.<br clear="none">><br clear="none">> -Jonathan<br clear="none">><br clear="none">><br clear="none">><br clear="none">><br clear="none">><br clear="none">> On Wednesday, October 7, 2015 12:28 PM, katja <<a shape="rect" ymailto="mailto:katjavetter@gmail.com" href="mailto:katjavetter@gmail.com">katjavetter@gmail.com</a>> wrote:<br clear="none">><br clear="none">><br clear="none">> Hello,<br clear="none">><br clear="none">> A particular font size issue can be observed in vanilla Pd and package<br clear="none">> puredata on Raspbian Wheezy and Jessie: font size 10 is larger for<br clear="none">> object boxes, message boxes and comments than for IEM guis (bang,<br clear="none">> toggle, slider, radio button, canvas). Object/message/comment<br clear="none">> characters are too large in number of pixels. When Edit > Font > Font<br clear="none">> Size is set to 8, their size is identical to IEM gui font size 10.<br clear="none">> This inconsistency does not happen for me on Xubuntu. A test patch and<br clear="none">> two screenshots are attached for illustration.<br clear="none">><br clear="none">> For IEM guis, font size 10 translates to 6 pixels per character on<br clear="none">> both systems, given the default font type DejaVu Sans Mono. For object<br clear="none">> boxes, message boxes and comments, font size 10 is 6 pixels on Xubuntu<br clear="none">> and almost 7 pixels on Raspbian.<br clear="none">><br clear="none">> I don't know if this issue is related to font size effects on Windows<br clear="none">> as described by Roman in another thread. In any case, consequences are<br clear="none">> similar: patches created on Xubuntu tend to look messy on Raspbian,<br clear="none">> sometimes with overlapping texts. With XFCE (Xubuntu's default desktop<br clear="none">> environment) installed on Raspbian the issue still persists. Custom<br clear="none">> dpi setting has no effect on Pd. What else might cause the difference<br clear="none">> in behavior on those systems?<br clear="none">><br clear="none">> Katja<br clear="none">><br clear="none">> _______________________________________________<br clear="none">> <a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">> UNSUBSCRIBE and account-management -><br clear="none">> <a shape="rect" href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br clear="none">><br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> <a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">> UNSUBSCRIBE and account-management -><br clear="none">> <a shape="rect" href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br clear="none">><br clear="none">><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>