diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py index 709374654..255f25cb5 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -135,7 +135,7 @@ class FreeTypeFont(object): layout_engine = LAYOUT_BASIC if core.HAVE_RAQM: layout_engine = LAYOUT_RAQM - if layout_engine == LAYOUT_RAQM and not core.HAVE_RAQM: + elif layout_engine == LAYOUT_RAQM and not core.HAVE_RAQM: layout_engine = LAYOUT_BASIC self.layout_engine = layout_engine