Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-09 Thread Dan Wilcox
I agree. This is one part of pd-extended that would be helpful to have in vanilla. I wonder how large that patch would be ... > On Oct 9, 2015, at 5:42 PM, katja > wrote: > > True, there can't be a guarantee, patches have to be tested on all > platforms but with Pd

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-09 Thread Jonathan Wilkes via Pd-list
Coincidentally enough, I made a parody website on grid fonts to elucidate some of their obvious drawbacks:http://cogsci.indiana.edu/gridfonts.html -Jonathan On Friday, October 9, 2015 8:05 PM, Matt Barber wrote: Maybe we should design a Pd gridfont (see  http://cogsci.indiana.edu/gri

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-09 Thread Matt Barber
Maybe we should design a Pd gridfont (see http://cogsci.indiana.edu/gridfonts.html ). Every letter is just line segments connecting dots on the same standard grid, so you wouldn't need to worry about metric translation at all -- just specify the dimensions of the grid in pixels. Of course then Pd w

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-09 Thread katja
On Fri, Oct 9, 2015 at 4:42 PM, Jonathan Wilkes wrote: > The patch developer can't get reproducible appearance > with iemguis across platforms: > * the patch developer is almost never able to know what > fonts are available on the other platforms > * the patch developer can't know the actual metri

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-09 Thread Jonathan Wilkes via Pd-list
The patch developer can't get reproducible appearancewith iemguis across platforms:* the patch developer is almost never able to know what fonts are available on the other platforms* the patch developer can't know the actual metrics ofthe font on those platforms* there's nothing in the iemgui p

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-09 Thread katja
Hi Jonathan, Considering the fact that IEM guis display with correct font size on Raspbian, there must be a way to do it right. The difference between IEM guis and object/message/comment is that in the first case you specify font type and size explicitly, and a choice of available types is present

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-08 Thread Jonathan Wilkes via Pd-list
Hi katja,What you say is completely reasonable.  And according to Pd's source code, it also happens to be wrong. Here's the definition of a size "10" font, from sys_fontlist of s_main.c:fi_fontsize = 10 (we don't know what the units are but I'm guessing it's supposed to be points) fi_maxwidth =

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-08 Thread katja
On Thu, Oct 8, 2015 at 3:41 PM, Jonathan Wilkes wrote: > Four things: > 1) The font dialog shouldn't use numbers. It should say "tiny", "small", > "medium", etc. because those numbers just mislead the user. Numbers only mislead the user when the wrong font size is displayed, like on Raspbian (si

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-08 Thread Jonathan Wilkes via Pd-list
Four things:1) The font dialog shouldn't use numbers.  It should say "tiny", "small", "medium", etc. because those numbers just mislead the user. 2)  Font dialog number "10" in Vanilla may correspond to any font size that hasa width less than or equal to 7 pixels (and height <= 13).  That includ

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread katja
On Thu, Oct 8, 2015 at 12:23 AM, Jonathan Wilkes wrote: > Ok, try this in place of the command that was giving the error: > pdtk_post "rank tk speculation follows: [font actual [get_font_for_size > $font_size] -displayof $tkcanvas]\n" > There you got it, inspector Wilkes! For Xubuntu the output i

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread Jonathan Wilkes via Pd-list
Ok, try this in place of the command that was giving the error:pdtk_post "rank tk speculation follows: [font actual [get_font_for_size $font_size] -displayof $tkcanvas]\n" On Wednesday, October 7, 2015 4:33 PM, Jonathan Wilkes via Pd-list wrote: Sorry, I thought that wo

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread Jonathan Wilkes via Pd-list
Sorry, I thought that would work.  I'll sit down and wade through all the indirection later to get a working debug printout. -Jonathan On Wednesday, October 7, 2015 4:26 PM, katja wrote: On Wed, Oct 7, 2015 at 9:40 PM, Jonathan Wilkes wrote: > For the official record-- I'm holding

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread katja
On Wed, Oct 7, 2015 at 9:40 PM, Jonathan Wilkes wrote: > For the official record-- I'm holding my tongue, in the hopes that when > others look at the code > in my GUI port they'll practice similar restraint. > > Ok, add this: > > pdtk_post "for real this time-- the actual font we are sending to tk

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread Jonathan Wilkes via Pd-list
For the official record-- I'm holding my tongue, in the hopes that when others look at the codein my GUI port they'll practice similar restraint. Ok, add this: pdtk_post "for real this time-- the actual font we are sending to tk is: [set [get_font_for_size $font_size]]\n" -Jonathan O

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread katja
On Wed, Oct 7, 2015 at 8:37 PM, Jonathan Wilkes wrote: > Silly me, I forgot this is Pd so it has to be way more complex than that... > > Add this line to pdtk_text_new in pdtk_text.tcl: > > pdtk_post "the actual font we are sending to tk is: [get_font_for_size > $font_size]\n" > > Now do the test

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread Jonathan Wilkes via Pd-list
Silly me, I forgot this is Pd so it has to be way more complex than that... Add this line to pdtk_text_new in pdtk_text.tcl: pdtk_post "the actual font we are sending to tk is: [get_font_for_size $font_size]\n" Now do the test I mentioned before. -Jonathan On Wednesday, October 7, 2015 2:

Re: [PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread Jonathan Wilkes via Pd-list
Hi katja, Could you do a test?  Make a simple patch with a single object in it, and use the same canvas font size you did above.  Then run Pd with -d 3 flag and see what font size is actually being sent from Pd to the GUI on each distro. -Jonathan On Wednesday, October 7, 2015 12:28 P

[PD] Pd internal font size inconsistency on Raspbian

2015-10-07 Thread katja
Hello, A particular font size issue can be observed in vanilla Pd and package puredata on Raspbian Wheezy and Jessie: font size 10 is larger for object boxes, message boxes and comments than for IEM guis (bang, toggle, slider, radio button, canvas). Object/message/comment characters are too large