2015-01-21 10:57:44 +01:00
|
|
|
To enable HarfBuzz bindings for Python among other languages, make sure
|
2015-05-05 08:10:32 +02:00
|
|
|
you have latest version of gobject-introspection available. On Ubuntu,
|
|
|
|
you can install that this way:
|
|
|
|
|
2018-03-29 01:52:53 +02:00
|
|
|
```bash
|
|
|
|
sudo apt-get install libgirepository1.0-dev
|
|
|
|
```
|
2015-05-05 08:10:32 +02:00
|
|
|
|
2020-08-03 16:11:49 +02:00
|
|
|
And then run `meson setup` and make sure that `Introspection` is reported
|
|
|
|
enabled in output.
|
2015-01-21 10:57:44 +01:00
|
|
|
|
|
|
|
Compile and install.
|
|
|
|
|
2019-08-03 13:55:34 +02:00
|
|
|
Make sure you have the installation lib dir in `LD_LIBRARY_PATH`, as needed
|
2015-01-21 10:57:44 +01:00
|
|
|
for the linker to find the library.
|
|
|
|
|
2019-08-03 13:55:34 +02:00
|
|
|
Then make sure you also have `GI_TYPELIB_PATH` pointing to the resulting
|
|
|
|
`$prefix/lib/girepository-*` directory.
|
2015-01-21 10:57:44 +01:00
|
|
|
|
|
|
|
Make sure you have pygobject installed. Then check that the following
|
2018-10-19 17:49:21 +02:00
|
|
|
import works in your Python interpreter:
|
2015-01-21 10:57:44 +01:00
|
|
|
|
2018-03-29 01:52:53 +02:00
|
|
|
```python
|
|
|
|
from gi.repository import HarfBuzz
|
|
|
|
```
|
2015-01-21 10:57:44 +01:00
|
|
|
|
|
|
|
If it does, you are ready to call HarfBuzz from Python! Congratulations.
|
2019-08-03 13:55:34 +02:00
|
|
|
See [`src/sample.py`](src/sample.py).
|
2015-01-21 10:57:44 +01:00
|
|
|
|
|
|
|
The Python API will change. Let us know on the mailing list if you are
|
|
|
|
using it, and send lots of feedback.
|