diff --git a/PIL/ImageFont.py b/PIL/ImageFont.py index a9c50e560..9d0a91b0d 100644 --- a/PIL/ImageFont.py +++ b/PIL/ImageFont.py @@ -261,7 +261,7 @@ def truetype(font=None, size=10, index=0, encoding="", filename=None): try: return FreeTypeFont(font, size, index, encoding) except IOError: - if font.endswith(".ttf"): + if font.endswith(".ttf") or font.endswith(".otf"): ttf_filename = font else: ttf_filename = "%s.ttf" % font