Skip to content

freetype not found #62

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

Open
ironsightdesign opened this issue Jun 10, 2024 · 2 comments
Open

freetype not found #62

ironsightdesign opened this issue Jun 10, 2024 · 2 comments

Comments

@ironsightdesign
Copy link

Not sure this is the best place for this question, but trying to use font_to_py.py to convert a font and getting "font_to_py requires the freetype library" even though I've done brew install freetype multiple times.

Not finding anyway to get pip to work and brew list shows freetype. Maybe font_to_py doesnt like where brew puts the library?

Any ideas?

@peterhinch
Copy link
Owner

I'm sorry but I have no experience of the Mac. I do know that Mac users have run font-to-py successfully. Does pip or pip3 not work on the Mac?

@adrianblakey
Copy link

adrianblakey commented Dec 9, 2024

I have the same issue. Any ideas?

python3 font_to_py.py FreeSans.ttf 20 freesans20.py
font_to_py requires the freetype library. Please see FONT_TO_PY.md.

which python3
/opt/homebrew/bin/python3

pip install freetype-py
Requirement already satisfied: freetype-py in /opt/homebrew/lib/python3.11/site-packages (1.2)

The answer is here: https://apple.stackexchange.com/questions/471270/python-doesnt-see-package-installed-by-brew

Install a venv, activate it and install freetype-py into it.

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

3 participants