20. Fonts, Bitmaps, and Images

The primary function of any graphical interface is to present text and pictures, and the resources needed to accomplish this are fonts and images. Available fonts vary greatly from one platform to another, and even from one Windows PC to another. Having a way to manage font usage in an application simplifies supporting multiple platforms and multiple environments. Tk provides the font command to create named fonts and to manage font use in applications. Likewise, icons have become as important as any glyph in any alphabet in today’s applications. These images, some of which are common and some of which are unique, are necessary in any application with a graphical user interface. The Tk image command is used to ...

Get Tcl and the Tk Toolkit, Second 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.