3 Star 2 Fork 1

Gitee 极速下载/harfbuzz

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/harfbuzz/harfbuzz
克隆/下载
README.python.md 1.14 KB
一键复制 编辑 原始数据 按行查看 历史

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 meson setup and make sure that Introspection is reported enabled in output.

If you are building with Visual Studio, it is recommended that Visual Studio 2019 or later is used for this build, for the best build experience.

Compile and install.

Make sure you have the installation lib dir in LD_LIBRARY_PATH (or the installation DLL dir in PATH for Windows systems), 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 interpreter:

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.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/mirrors/harfbuzz.git
git@gitee.com:mirrors/harfbuzz.git
mirrors
harfbuzz
harfbuzz
main

搜索帮助