Freetype python bindings
Project description
FreeType high-level python API
Freetype python provides bindings for the FreeType library. Only the high-level API is bound.
Documentation available at: http://freetype-py.readthedocs.org/en/latest/
Installation
To be able to use freetype python, you need the freetype library version 2 installed on your system.
Mac users
Freetype should be already installed on your system. If not, either install it using homebrew or compile it and place the library binary file in ‘/usr/local/lib’.
Linux users
Freetype should be already installed on your system. If not, either install relevant package from your package manager or compile from sources and place the library binary file in ‘/usr/local/lib’.
Window users
You can try to install a window binaries available from the Freetype site or you can compile it from sources. In such a case, make sure the resulting library binaries is named ‘Freetype.dll’ (and not something like Freetype245.dll) and make sure to place a copy in Windows/System32 directory.
Usage example
import freetype
face = freetype.Face("Vera.ttf")
face.set_char_size( 48*64 )
face.load_char('S')
bitmap = face.glyph.bitmap
print bitmap.buffer
Contributors
Titusz Pan (bug report)
Ekkehard.Blanz (bug report)
Jānis Lībeks (bug report)
Frantisek Malina (typo)
Tillmann Karras (bug report & fix)
Matthew Sitton (bug report & fix)
Tao Gong (bug report)
Matthew Sitton (Remove raw interfaces from the __init__.py file)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file freetype-py-1.0.1.tar.gz
.
File metadata
- Download URL: freetype-py-1.0.1.tar.gz
- Upload date:
- Size: 160.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23ec51c829abed2e526b12017b33d63ba54841cc9f602c50e55421c596ba69f3 |
|
MD5 | 6f51c7819648654f0d09dcee1abb0c60 |
|
BLAKE2b-256 | 065699713131fc99b96098f4f297a5cf1d636859893c736cb1bd9d49e1cd807d |