diff --git a/tools/ttf2inc.py b/tools/ttf2inc.py index 1cd0f1ec6..a5472f23e 100755 --- a/tools/ttf2inc.py +++ b/tools/ttf2inc.py @@ -304,6 +304,11 @@ def find_fonts(self): self.font_name[index] = filename continue + filename = os.path.join("../../se/lfs_poc", font_name) + if os.path.exists(filename): + self.font_name[index] = filename + continue + # If we didn't found the specified font, let pillow search by itself # (it looks in system directories too)