atom feed54 messages in at.iem.pd-listRe: [PD] Font weirdness with 0.43test
FromSent OnAttachments
Frank BarknechtAug 20, 2010 9:44 am.png
Bernardo BarrosAug 20, 2010 9:58 am 
Miller PucketteAug 20, 2010 10:17 am 
Frank BarknechtAug 20, 2010 10:24 am 
Bernardo BarrosAug 20, 2010 10:29 am 
Hans-Christoph SteinerAug 20, 2010 11:10 am 
Bernardo BarrosAug 20, 2010 11:14 am 
Hans-Christoph SteinerAug 20, 2010 11:21 am 
Frank BarknechtAug 21, 2010 12:53 am 
Bernardo BarrosAug 21, 2010 10:21 am 
Mathieu BouchardAug 21, 2010 10:38 am 
Mathieu BouchardAug 21, 2010 10:50 am 
Hans-Christoph SteinerAug 21, 2010 11:07 am 
Mathieu BouchardAug 22, 2010 9:34 am 
Frank BarknechtAug 23, 2010 4:01 am 
Hans-Christoph SteinerAug 23, 2010 10:19 pm 
Hans-Christoph SteinerAug 23, 2010 10:20 pm 
Miller PucketteAug 24, 2010 1:38 pm 
Hans-Christoph SteinerAug 25, 2010 9:14 am 
Miller PucketteAug 25, 2010 11:09 am 
Hans-Christoph SteinerAug 25, 2010 11:44 am 
Miller PucketteAug 25, 2010 11:49 am 
Hans-Christoph SteinerAug 25, 2010 12:39 pm.tcl
Hans-Christoph SteinerAug 25, 2010 1:18 pm 
cyrille henryAug 25, 2010 1:30 pm 
Hans-Christoph SteinerAug 25, 2010 1:57 pm 
Hans-Christoph SteinerAug 25, 2010 2:04 pm 
Mathieu BouchardAug 25, 2010 2:24 pm 
cyrille henryAug 25, 2010 2:50 pm 
Miller PucketteAug 25, 2010 9:52 pm 
IOhannes m zmoelnigAug 26, 2010 12:26 am 
JackAug 26, 2010 4:07 am 
Roman HaefeliAug 26, 2010 4:20 am 
Hans-Christoph SteinerAug 26, 2010 8:52 am 
Hans-Christoph SteinerAug 26, 2010 8:57 am 
Hans-Christoph SteinerAug 26, 2010 8:59 am 
Hans-Christoph SteinerAug 26, 2010 10:48 am.tcl
Hans-Christoph SteinerAug 26, 2010 10:53 am 
Miller PucketteAug 26, 2010 11:43 am 
Hans-Christoph SteinerAug 26, 2010 12:26 pm 
Hans-Christoph SteinerAug 26, 2010 12:42 pm 
Hans-Christoph SteinerAug 26, 2010 1:42 pm.patch
Bernardo BarrosAug 26, 2010 1:51 pm 
Hans-Christoph SteinerAug 27, 2010 9:47 am 
Miller PucketteAug 27, 2010 10:01 pm 
Hans-Christoph SteinerAug 29, 2010 10:44 am 
Miller PucketteAug 29, 2010 9:16 pm 
Hans-Christoph SteinerAug 30, 2010 3:04 pm 
Miller PucketteAug 30, 2010 5:30 pm 
Hans-Christoph SteinerAug 30, 2010 6:41 pm 
Mathieu BouchardSep 5, 2010 2:16 pm 
Hans-Christoph SteinerSep 5, 2010 8:22 pm 
Mathieu BouchardSep 9, 2010 1:14 pm 
Hans-Christoph SteinerSep 9, 2010 9:57 pm 
Subject:Re: [PD] Font weirdness with 0.43test
From:Hans-Christoph Steiner (ha@at.or.at)
Date:Aug 20, 2010 11:21:06 am
List:at.iem.pd-list

The font point sizes do not match up to other apps, so a 12pt font in Pd is not the same size as a 12pt font in a GNOME app. That is because the Pd box sizes are hard coded in pixel sizes. That means that you always get the same size box no matter what platform, or no matter what font you have installed. In order to make this work, the font for a given point size is the largest font that will fit into the fixed box size.

In order for there to be proper font sizing and cross-platform layout, things need to be architected quite a bit differently. I think the best way would be to implement using Tk scaling, then allow the GUI to handle mouse motion, clicks, etc. There are issues there too, its unfortunately not simple. But basically, the communcation between pd and pd-gui should be more about logical actions than positions.

Inconsolata is an awesome font, by far the best fixed-font I've seen anywhere. That's why made Pd use it if it can find it. Otherwise it settles on what Tcl/Tk decides to call "courier" (see Tk font docs).

set testfonts {"Inconsolata" "Courier New" "Liberation Mono" "FreeMono" \ "DejaVu Sans Mono" "Bitstream Vera Sans Mono"}

.hc

On Aug 20, 2010, at 1:30 PM, Bernardo Barros wrote:

I would vote for this fixed-spaced (but not ugly) font: http://www.levien.com/type/myfonts/inconsolata.html

2010/8/20 Frank Barknecht <fb@footils.org>:

On Fri, Aug 20, 2010 at 10:17:27AM -0700, Miller Puckette wrote:

I don't know how to do this in a way that's portable across platforms... this has been a huge unsolved problem for years :)

Hehe, yeah, I'm used to tears. :)

Anyway in my quick test the GUI rewrite seems to have degraded a bit in this regard, as 0.42 showed the same font size that standard Gtk apps like Vim use.

But maybe some Gnome users can compare font sizes between Pd and Gtk- (or Qt) apps and some defaults for Linux can just be adapted?

Ciao

"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity." -John Gilmore