use hasattr instead of isinstance

This commit is contained in:
David Rose 2002-12-11 21:30:18 +00:00
parent a4f9cbb389
commit ec699adbee
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class Loader:
font = DynamicTextFont(fn, faceIndex)
# The following properties may only be set for dynamic fonts.
if isinstance(font, DynamicTextFont):
if hasattr(font, "setPointSize"):
if pointSize != None:
font.setPointSize(pointSize)
if pixelsPerUnit != None: