<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Sorry, I thought that would work.  I'll sit down and wade through all the indirection later to get a working debug printout.</div><div><br></div><div id="yui_3_16_0_1_1444249556038_5418">-Jonathan<br></div><div id="yui_3_16_0_1_1444249556038_5310"><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 4:26 PM, katja <katjavetter@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">On Wed, Oct 7, 2015 at 9:40 PM, Jonathan Wilkes <<a href="" class="removed-link" shape="rect" ymailto="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>> wrote:<br clear="none">> For the official record-- I'm holding my tongue, in the hopes that when<br clear="none">> others look at the code<br clear="none">> in my GUI port they'll practice similar restraint.<br clear="none">><br clear="none">> Ok, add this:<br clear="none">><br clear="none">> pdtk_post "for real this time-- the actual font we are sending to tk is:<br clear="none">> [set [get_font_for_size $font_size]]\n"<br clear="none"><br clear="none">Pd list is now looking at a line that doesn't work. The error is:<br clear="none"><br clear="none">can't read "::pd_font_10": no such variable<div class="yqt5967847966" id="yqtfd65923"><br clear="none"><br clear="none"><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">><br clear="none">> On Wednesday, October 7, 2015 3:19 PM, katja <<a href="" class="removed-link" shape="rect" ymailto="mailto:katjavetter@gmail.com">katjavetter@gmail.com</a>> wrote:<br clear="none">><br clear="none">><br clear="none">> On Wed, Oct 7, 2015 at 8:37 PM, Jonathan Wilkes <<a href="" class="removed-link" shape="rect" ymailto="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<br clear="none">>> 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"<br clear="none">><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 href="" class="removed-link" shape="rect" ymailto="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<br clear="none">>> and<br clear="none">>> see what font size is actually being sent from Pd to the GUI on each<br clear="none">>> 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 href="" class="removed-link" shape="rect" ymailto="mailto:katjavetter@gmail.com">katjavetter@gmail.com</a>><br clear="none">>> 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 href="" class="removed-link" shape="rect" ymailto="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 href="" class="removed-link" shape="rect" 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 href="" class="removed-link" shape="rect" ymailto="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 href="" class="removed-link" shape="rect" 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"></div><br><br></div>  </div> </div>  </div></div></body></html>