Views
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?
- 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