python-uharfbuzz
Port variant v13
Summary Steamlined harfbuzz cpython bindings (3.13)
Package version 0.53.3
Homepage https://github.com/trufont/uharfbuzz
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 24 JAN 2026, 14:52:53 UTC
Port created 23 JAN 2026, 01:42:54 UTC
Subpackage Descriptions
single ## uharfbuzz

[image]

[![Build + Deploy]](https://github.com/harfbuzz/uharfbuzz/actions/workflows/ci.yml) [PyPI] [Documentation Status]
Streamlined Cython bindings for the [HarfBuzz][hb] shaping engine. ### Example ```python import sys import uharfbuzz as hb fontfile = sys.argv[1] text = sys.argv[2] blob = hb.Blob.from_file_path(fontfile) face = hb.Face(blob) font = hb.Font(face) buf = hb.Buffer() buf.add_str(text) buf.guess_segment_properties() features = {"kern": True, "liga": True} hb.shape(font, buf, features) infos = buf.glyph_infos positions = buf.glyph_positions for info, pos in zip(infos, positions): gid = info.codepoint glyph_name = font.glyph_to_string(gid) cluster = info.cluster x_advance = pos.x_advance x_offset = pos.x_offset y_offset = pos.y_offset print(f"{glyph_name} gid{gid}={cluster}@{x_advance},{y_offset}+{x_advance}") ``` ### Installation When building the uharfbuzz package, it automatically incorporates minimal HarfBuzz sources so you don't have to install the native HarfBuzz library. However, if you want to use uharfbuzz with your system-provided HarfBuzz (e.g., if you built it from sources with custom configuration), you can set `USE_SYSTEM_LIBS=1` environment variable (see example below). ```shell USE_SYSTEM_LIBS=1 pip install uharfbuzz --no-binary :uharfbuzz: ``` harfbuzz installation is found using `pkg-config`, so you must have harfbuzz's `.pc` files in your system. If you've built it from sources, meson installs them automatically. Otherwise, you may want to install harfbuzz development package, like `harfbuzz-devel` on Fedora-derived distros. ### How to make a release Use `git tag -a` to make a new annotated tag, or `git tag -s` for a GPG-signed annotated tag, if you prefer. Name the new tag with with a leading ā€˜v’ followed by three MAJOR.MINOR.PATCH digits, like in semantic versioning. Look at the existing tags for examples. In the tag message write some short release notes describing the changes since the previous tag. The subject line will be the release name and the message body will be the release notes. Finally, push the tag to the remote repository (e.g. assuming upstream is called origin): $ git push origin v0.4.3 This will trigger the CI to build the distribution packages and upload them to the Python Package Index automatically, if all the tests pass successfully. The CI will also automatically create a new Github Release and use the content of the annotated git tag for the release notes. [hb]: https://github.com/harfbuzz/harfbuzz
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) harfbuzz:dev:std
python-setuptools-scm:single:v13
python-Cython:single:v13
python-pkgconfig:single:v13
python313:dev:std
python-pip:single:v13
python-setuptools:single:v13
python-wheel:single:v13
python-build:single:v13
python-installer:single:v13
autoselect-python:single:std
Build and Runtime harfbuzz:primary:std
python313:primary:std
Download groups
main mirror://PYPI/u/uharfbuzz
Distribution File Information
9a87175c14d1361322ce2a3504e63c6b66062934a5edf47266aed5b33416806c 1714488 python-src/uharfbuzz-0.53.3.tar.gz
Ports that require python-uharfbuzz:v13
cantarell-fonts:std Contemporary Humanist sans serif typeface family