Imported Upstream version 0.9.40
[platform/upstream/harfbuzz.git] / README.python
1 To enable HarfBuzz bindings for Python among other languages, make sure
2 you have latest version of gobject-introspection compiled, and then
3 run autogen.sh (if building from git), and then:
4
5   ./configure --with-gobject --enable-introspection
6
7 Make sure that gobject-introspection is enabled then in the final report.
8
9 Compile and install.
10
11 Make sure you have the installation lib dir in LD_LIBRARY_PATH, as needed
12 for the linker to find the library.
13
14 Then make sure you also have GI_TYPELIB_PATH pointing to the resulting
15 $prefix/lib/girepository-* directory.
16
17 Make sure you have pygobject installed.  Then check that the following
18 import works in your Python interpretter:
19
20   from gi.repository import HarfBuzz
21
22 If it does, you are ready to call HarfBuzz from Python!  Congratulations.
23 See src/sample.py.
24
25 The Python API will change.  Let us know on the mailing list if you are
26 using it, and send lots of feedback.