Platform-Independent Fonts

A platform-independent font naming system was added in Tk 8.0. Names like times 10 bold are interpreted on all platforms. The font command lets you create font objects that can be associated with widgets. The font metrics command returns detailed size information. The font command is described on page 554.

Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.