<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On further digging, I think the culprit is a slightly different tk scaling value:<div class=""><br class=""></div><div class="">Tk 8.4 -> scaling: 0.999016715831</div><div class=""><br class=""></div><div class="">Tk 8.6 -> scaling: 0.9990167158308751</div><div class=""><br class=""></div><div class="">Looks like a precision/rounding issue after all w/ 11 digits versus 17.<br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 15, 2017, at 12:16 AM, Dan Wilcox <<a href="mailto:danomatika@gmail.com" class="">danomatika@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Looks like you’re right. I checked the debug output of the fit_font_into_metrics proc:<div class=""><br class=""></div><div class="">In Tk 8.4 with Monaco, I get</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal;" class="">6 4 7</div><div style="margin: 0px; line-height: normal;" class="">7 4 9</div><div style="margin: 0px; line-height: normal;" class="">8 5 10</div><div style="margin: 0px; line-height: normal;" class="">9 7 11</div><div style="margin: 0px; line-height: normal;" class="">10 6 13</div><div style="margin: 0px; line-height: normal;" class="">…</div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class="">And in Tk 8.6:</div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class="">6 4 9</div><div style="margin: 0px; line-height: normal;" class="">7 5 10</div><div style="margin: 0px; line-height: normal;" class="">8 5 11</div><div style="margin: 0px; line-height: normal;" class="">9 6 12</div><div style="margin: 0px; line-height: normal;" class="">10 7 14</div><div style="margin: 0px; line-height: normal;" class="">…</div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class="">I wonder if this is a rounding error?</div></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Feb 12, 2017, at 9:20 AM, Miller Puckette <<a href="mailto:msp@ucsd.edu" class="">msp@ucsd.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">About that padding - the Tcl code sends Pd the font metrics on startup, and<br class="">Pd follows them in setting the dimensions of boxes.  So I guess the new version<br class="">of Tcl/Tk is overstating the font width by one pixel.  Perhaps height is also<br class="">wrong in the same way (make a mesages box with 20-ish lines in it and see if the box<br class="">is 20 pixels too tall).<br class=""><br class="">cheers<br class="">M<br class=""><br class="">On Sun, Feb 12, 2017 at 02:39:32AM -0700, Dan Wilcox wrote:<br class=""><blockquote type="cite" class="">As for comparisons, here’s the same patch using Deja Vu Sans Mono and Monaco, both with Tk 8.4 & with Tk 8.6 Retina HiDPI rendering: <a href="https://flic.kr/p/QLGphN" class="">https://flic.kr/p/QLGphN</a> <<a href="https://flic.kr/p/QLGphN" class="">https://flic.kr/p/QLGphN</a>> (zoom in or download & view at full size)<br class=""><br class="">Jonathan: One of the remaining problems I have with the Tk 8.6 build is the padding added to the object box width in HiDPI. Any clues on what to look into to fix this? The object arguments are clearly the same width… or appear to be.<br class=""><br class=""></blockquote></div></div></blockquote></div></div></div></div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">--------</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Dan Wilcox</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 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-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 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-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><a href="http://robotcowboy.com" class="">robotcowboy.com</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: 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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""></div></div></body></html>