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)
Metadata
Release files for freetype-py 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| freetype-py-1.0.2.tar.gz | 394.1 kB | Details |
Release files / freetype-py-1.0.2.tar.gz
| Download URL | freetype-py-1.0.2.tar.gz |
|---|---|
| Size | 394.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9c7393ad3c48e3a9656c3ea4e1f20418ef5c12c42205f9294237a5dae933d6e
|
|
BLAKE2b-256 checksum How to use checksums |
701667b5c2bb399e68c44f1c221e5317474a299f997592ae6fee0406f32f6409
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |