blob: cd312649dbcde47dbc4e2f49e245c58ab1de007b [file] [log] [blame]
Behdad Esfahbod31d48dd2015-01-21 01:57:44 -08001To enable HarfBuzz bindings for Python among other languages, make sure
Behdad Esfahbodc60f3c82015-05-04 23:10:32 -07002you have latest version of gobject-introspection available. On Ubuntu,
3you can install that this way:
4
5 sudo apt-get install libgirepository1.0-dev
6
7And then run autogen.sh (if building from git), and then:
Behdad Esfahbod31d48dd2015-01-21 01:57:44 -08008
9 ./configure --with-gobject --enable-introspection
10
11Make sure that gobject-introspection is enabled then in the final report.
12
13Compile and install.
14
15Make sure you have the installation lib dir in LD_LIBRARY_PATH, as needed
16for the linker to find the library.
17
18Then make sure you also have GI_TYPELIB_PATH pointing to the resulting
19$prefix/lib/girepository-* directory.
20
21Make sure you have pygobject installed. Then check that the following
22import works in your Python interpretter:
23
24 from gi.repository import HarfBuzz
25
26If it does, you are ready to call HarfBuzz from Python! Congratulations.
27See src/sample.py.
28
29The Python API will change. Let us know on the mailing list if you are
30using it, and send lots of feedback.