Appendix C. Fonts

This appendix describes how to use the new methods in Tk8.0 to create and maintain fonts. In Tk4, you could only pass a font string to -font option. You can still pass a font string in Tk8.0, but you can also use some methods to create your own named fonts and perform operations on them. First I'll go over the simple way to use a font string, which works in both versions. Then we'll get into the more complicated methods available with Tk8.0.

Get Learning Perl/Tk 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.