[PD] Font size on Windows and Linux

Roman Haefeli reduzent at gmail.com
Thu Sep 10 19:23:41 CEST 2015


On Thu, 2015-09-10 at 14:43 +0200, Roman Haefeli wrote:

> Pd-extended already dealt with the issue and apparently found a fix.
> What would speak against incorporating that fix into Pd?

Something I found in Pd-extended is a different metric matrix in
pd-gui.tcl . I took over some of Pd-extended's values and it does
already a better job, but still not perfect:

------
diff --git a/tcl/pd-gui.tcl b/tcl/pd-gui.tcl
index 92c632e..b10ced6 100755
--- a/tcl/pd-gui.tcl
+++ b/tcl/pd-gui.tcl
@@ -125,10 +125,10 @@ set font_weight "normal"
 # sizes of chars for each of the Pd fixed font sizes:
 #  fontsize  width(pixels)  height(pixels)
 set font_fixed_metrics {
-    8 6 11
+    8 5 11
     9 6 12
-    10 7 13
-    12 9 16
+    10 6 13
+    12 10 16 
     14 8 17
     16 10 20
     18 11 22
------

The width of the sizes 8 and 10 are OK now, but 10 is now one pixel
taller on Linux compared to Windows. Size 12 didn't change at all. It is
still wider and one pixel taller on Windows compared to Linux.

Roman 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150910/2872012d/attachment.sig>


More information about the Pd-list mailing list