Issue #1730136: Fix comparison between a tk Font object and an object of a
different type.