Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font loading issue and fix #4

Open
TrentBrick opened this issue Mar 10, 2021 · 0 comments
Open

Font loading issue and fix #4

TrentBrick opened this issue Mar 10, 2021 · 0 comments

Comments

@TrentBrick
Copy link

Thank you so much for this incredible library!

Heads up to anyone else, I ran into a bug where I couldn't load the custom font provided. On line 74 of scripts/photo.py I needed to add the prefix horcrux because my setup.command was running from my base directory, not the horcrux directory.

font = ImageFont.truetype('./assets/font/' + conf.fontfamily, conf.fontsize)

Changed to:

font = ImageFont.truetype('./horcrux/assets/font/' + conf.fontfamily, conf.fontsize)

and then everything worked as it should!

Thanks again @soyaine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant