May 2018
Beginner to intermediate
452 pages
11h 26m
English
In Chapter 8, Improving the Look with Styles and Themes, we learned how easy it is to customize Tkinter's fonts to change the look and feel of your application. Doing so, however, can cause inconsistencies across platforms.
There are around 18 fonts that are shared between macOS and Windows, but not all of them look identical on both platforms. As for Linux, most distributions ship with none of those 18 fonts due to license issues. Unless you can guarantee that a particular font is available on all supported platforms, it's best to avoid naming specific font-families in your styles. Fortunately, if you do happen to specify a nonexistent font, Tkinter will just use the default, but even that could cause layout or readability issues in ...