Personal tools
You are here: Home development GuiSizeDifferences
Views

Edit history

Edit: -1 of 1
Time: 2007-04-16 21:59:49
Note: /pd/pd/dev/GuiSizeDifferences/edit

changed:
-
Fixing Cross-Platform GUI Element Size Differences

 On each platform, the size of the object boxes and the fonts vary to differing degrees.  By using Tk font specs instead of X11 font specs, Tcl/Tk will accommidate the different platforms properly and the fonts will be the same size.  By allowing Tcl/Tk to size the object boxes, instead of having it done manually in C, the object boxes will conform to the font sizes, and therefore be the same on each platform.

Notable Functions

 s_main.c: sys_hostfontsize() - sets font size
 u_main.tk: pdtk_text_new() - creates comments

Discussions on this Topic

 - pd-list: "pd font finetuning with tk scaling?":http://lists.puredata.info/pipermail/pd-list/2005-11/033127.html

 - pd-dev: "text placement":http://lists.puredata.info/pipermail/pd-dev/2007-01/008270.html

 - pd-list: "How to have consistent fonts in Pd?":http://lists.puredata.info/pipermail/pd-list/2006-07/040041.html

 - pd-list: "true-type-font versus bitmap-font":http://lists.puredata.info/pipermail/pd-list/2005-11/033437.html

 - pd-list: "tk scaling test 1":http://lists.puredata.info/pipermail/pd-list/2005-11/033242.html

Test patch

  This patch is a survey of different sizes: "courier10.pd":courier10.pd



Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser