同步操作将从 OpenHarmony/third_party_harfbuzz 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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 reported enabled then in the configure
script output.
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 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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。