Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/harfbuzz/README.python.md @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 To enable HarfBuzz bindings for Python among other languages, make sure | |
| 2 you have latest version of gobject-introspection available. On Ubuntu, | |
| 3 you can install that this way: | |
| 4 | |
| 5 ```bash | |
| 6 sudo apt-get install libgirepository1.0-dev | |
| 7 ``` | |
| 8 | |
| 9 And then run `meson setup` and make sure that `Introspection` is reported | |
| 10 enabled in output. | |
| 11 | |
| 12 Compile and install. | |
| 13 | |
| 14 Make sure you have the installation lib dir in `LD_LIBRARY_PATH`, as needed | |
| 15 for the linker to find the library. | |
| 16 | |
| 17 Then make sure you also have `GI_TYPELIB_PATH` pointing to the resulting | |
| 18 `$prefix/lib/girepository-*` directory. | |
| 19 | |
| 20 Make sure you have pygobject installed. Then check that the following | |
| 21 import works in your Python interpreter: | |
| 22 | |
| 23 ```python | |
| 24 from gi.repository import HarfBuzz | |
| 25 ``` | |
| 26 | |
| 27 If it does, you are ready to call HarfBuzz from Python! Congratulations. | |
| 28 See [`src/sample.py`](src/sample.py). | |
| 29 | |
| 30 The Python API will change. Let us know on the mailing list if you are | |
| 31 using it, and send lots of feedback. |
