-
Notifications
You must be signed in to change notification settings - Fork 88
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
build embedded freetype lib with color font support? #123
Comments
correction sorry we already support harbuzz in the setup-build-freetype.py script: freetype-py/setup-build-freetype.py Line 161 in c578643
|
Stupid question: do we need the "official" png library of can freetype uses something like https://github.com/nothings/stb/blob/master/stb_image.h ? |
Freetype uses the official libpng. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the freetype2 embedded library that freetype-py includes is built without PNG support so loading emoji fonts doesn't work. One has to build their own freetype2 library with color support and have freetype-py load from that.
the setup-build-freetype.py script is configured to disable external dependencies, for good reasons since we want to make sure the compiled library is standalone and portable:
freetype-py/setup-build-freetype.py
Lines 143 to 146 in c578643
Maybe we could see if we can also build the other external dependencies (zlib, png, perhaps even harfbuzz) and statically link them into the shared library that we are embedding in the freetype-py distribution.
The text was updated successfully, but these errors were encountered: