Personal tools
You are here: Home development GuiSizeDifferences
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

Test patch

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



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