File: README.python

package info (click to toggle)
harfbuzz 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,404 kB
  • ctags: 8,635
  • sloc: cpp: 37,815; sh: 11,976; ansic: 9,840; python: 1,308; xml: 962; makefile: 739
file content (30 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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:

  sudo apt-get install libgirepository1.0-dev

And then run autogen.sh (if building from git), and then:

  ./configure --with-gobject --enable-introspection

Make sure that gobject-introspection is enabled then in the final report.

Compile and install.

Make sure you have the installation lib dir in LD_LIBRARY_PATH, as needed
for the linker to find the library.

Then make sure you also have GI_TYPELIB_PATH pointing to the resulting
$prefix/lib/girepository-* directory.

Make sure you have pygobject installed.  Then check that the following
import works in your Python interpretter:

  from gi.repository import HarfBuzz

If it does, you are ready to call HarfBuzz from Python!  Congratulations.
See src/sample.py.

The Python API will change.  Let us know on the mailing list if you are
using it, and send lots of feedback.