[PD] Pd internal font size inconsistency on Raspbian

katja katjavetter at gmail.com
Wed Oct 7 21:19:09 CEST 2015


On Wed, Oct 7, 2015 at 8:37 PM, Jonathan Wilkes <jancsika at yahoo.com> 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 I mentioned before.

The answer is in both cases:

"the actual font we are sending to tk is: ::pd_font_10"


> -Jonathan
>
>
>
> On Wednesday, October 7, 2015 2:16 PM, Jonathan Wilkes via Pd-list
> <pd-list at lists.iem.at> wrote:
>
>
> 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 PM, katja <katjavetter at gmail.com> wrote:
>
>
> 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 in number of pixels. When Edit > Font > Font
> Size is set to 8, their size is identical to IEM gui font size 10.
> This inconsistency does not happen for me on Xubuntu. A test patch and
> two screenshots are attached for illustration.
>
> For IEM guis, font size 10 translates to 6 pixels per character on
> both systems, given the default font type DejaVu Sans Mono. For object
> boxes, message boxes and comments, font size 10 is 6 pixels on Xubuntu
> and almost 7 pixels on Raspbian.
>
> I don't know if this issue is related to font size effects on Windows
> as described by Roman in another thread. In any case, consequences are
> similar: patches created on Xubuntu tend to look messy on Raspbian,
> sometimes with overlapping texts. With XFCE (Xubuntu's default desktop
> environment) installed on Raspbian the issue still persists. Custom
> dpi setting has no effect on Pd. What else might cause the difference
> in behavior on those systems?
>
> Katja
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>



More information about the Pd-list mailing list