Personal tools
You are here: Home development GuiSizeDifferences

Edit history

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

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 pdtk_text_new() - creates comments

Discussions on this Topic

 - pd-list: "pd font finetuning with tk scaling?":

 - pd-dev: "text placement":

 - pd-list: "How to have consistent fonts in Pd?":

 - pd-list: "true-type-font versus bitmap-font":

 - pd-list: "tk scaling test 1":

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