HarfBuzz text shaping engine http://harfbuzz.github.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

10 years ago
To enable HarfBuzz bindings for Python among other languages, make sure
you have latest version of gobject-introspection available. On Ubuntu,
you can install that this way:
```bash
sudo apt-get install libgirepository1.0-dev
```
5 years ago
And then run `autogen.sh` (if building from git), and then:
10 years ago
```bash
./configure --with-gobject --enable-introspection
```
10 years ago
5 years ago
Make sure that gobject-introspection is reported enabled then in the `configure` script output.
10 years ago
Compile and install.
5 years ago
Make sure you have the installation lib dir in `LD_LIBRARY_PATH`, as needed
10 years ago
for the linker to find the library.
5 years ago
Then make sure you also have `GI_TYPELIB_PATH` pointing to the resulting
`$prefix/lib/girepository-*` directory.
10 years ago
Make sure you have pygobject installed. Then check that the following
6 years ago
import works in your Python interpreter:
10 years ago
```python
from gi.repository import HarfBuzz
```
10 years ago
If it does, you are ready to call HarfBuzz from Python! Congratulations.
5 years ago
See [`src/sample.py`](src/sample.py).
10 years ago
The Python API will change. Let us know on the mailing list if you are
using it, and send lots of feedback.