Skip to main content

Streamlined Cython bindings for the harfbuzz shaping engine

Project description

Githun CI Status Appveyor Build status PyPI

uharfbuzz

Streamlined Cython bindings for the HarfBuzz shaping engine.

Example

import sys

import uharfbuzz as hb


with open(sys.argv[1], 'rb') as fontfile:
    fontdata = fontfile.read()

text = sys.argv[2]

face = hb.Face(fontdata)
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
    cluster = info.cluster
    x_advance = pos.x_advance
    x_offset = pos.x_offset
    y_offset = pos.y_offset
    print(f"gid{gid}={cluster}@{x_advance},{x_offset}+{y_offset}")

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.

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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uharfbuzz-0.16.1.zip (1.1 MB view details)

Uploaded Source

Built Distributions

uharfbuzz-0.16.1-cp39-cp39-win_amd64.whl (407.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

uharfbuzz-0.16.1-cp39-cp39-win32.whl (350.0 kB view details)

Uploaded CPython 3.9 Windows x86

uharfbuzz-0.16.1-cp39-cp39-manylinux1_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.9

uharfbuzz-0.16.1-cp39-cp39-macosx_10_9_x86_64.whl (570.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

uharfbuzz-0.16.1-cp38-cp38-win_amd64.whl (408.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

uharfbuzz-0.16.1-cp38-cp38-win32.whl (350.9 kB view details)

Uploaded CPython 3.8 Windows x86

uharfbuzz-0.16.1-cp38-cp38-manylinux1_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.8

uharfbuzz-0.16.1-cp38-cp38-macosx_10_9_x86_64.whl (565.2 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

uharfbuzz-0.16.1-cp37-cp37m-win_amd64.whl (404.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

uharfbuzz-0.16.1-cp37-cp37m-win32.whl (348.9 kB view details)

Uploaded CPython 3.7m Windows x86

uharfbuzz-0.16.1-cp37-cp37m-manylinux1_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.7m

uharfbuzz-0.16.1-cp37-cp37m-macosx_10_9_x86_64.whl (563.6 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

uharfbuzz-0.16.1-cp36-cp36m-win_amd64.whl (404.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

uharfbuzz-0.16.1-cp36-cp36m-win32.whl (349.0 kB view details)

Uploaded CPython 3.6m Windows x86

uharfbuzz-0.16.1-cp36-cp36m-manylinux1_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.6m

uharfbuzz-0.16.1-cp36-cp36m-macosx_10_9_x86_64.whl (565.8 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file uharfbuzz-0.16.1.zip.

File metadata

  • Download URL: uharfbuzz-0.16.1.zip
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1.zip
Algorithm Hash digest
SHA256 509aee6075c9c68fba250281b0a1d2cbf3c26a865af567589dead5e80cffe6af
MD5 232218d9a450f19c1d66adb33b5f2a9e
BLAKE2b-256 410e34f349ff82f0a583420a5f4993ebe8da19860cc627db4653017b5e6fe90d

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 407.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f364ca724e9b2f91f05ef8074ff542d20b3ed08aea1afb33847e2cb3cc27bace
MD5 e7edfca8d45abe5f25ef9f008ff042f7
BLAKE2b-256 1e3f69f3e750e0e19fd9a937baa05f93bd76608f12a895b58125b3d46213220c

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp39-cp39-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp39-cp39-win32.whl
  • Upload date:
  • Size: 350.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a84dc26956d682b6b64a02571c5be9aacb1b19c08f5cacffb10ebb74b85a99d9
MD5 327ef491e339e3735e191d887b7f82d0
BLAKE2b-256 38b906f7b9a6edd5a932b4df90d184ea476ce19c62d14668393740e1f2b6a62a

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b52e8a9621212d1b85ffff32f4d4d533e5228a9c1c0533f5fe812253020473a3
MD5 6019e422b8c4629023db5040e1f5167d
BLAKE2b-256 4795798796a94d80f7b8d5e2229911d9232f510b85dd8318de00368928e041df

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 570.6 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 22f2ee1905282da627054fc26b787a6e827bad5ce0ba89f0e63e1d0ecc9cd3ef
MD5 bd18c72adcab208c6de4e7491fb2dba1
BLAKE2b-256 3f6106658acd31a352bdb6e04a5091d7347208c7a8dc6f9e32455c71dca90950

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 408.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 23c02e2ff4828b7085d69142a1ff31c4fb1b921e0bea7fd4f3e1151e2ed23de4
MD5 363679b6ac6b62c925f23f8b688db48b
BLAKE2b-256 dede0fcba46b8945c8e4014a86e909e16eb27eaaf4dc9e3ade82a37d285afb07

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp38-cp38-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp38-cp38-win32.whl
  • Upload date:
  • Size: 350.9 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7330c1ab6bb5317c4f38fc5891342c9cd0688c6b8972070fb32e35e37ecf751c
MD5 c2bfbd7b5496fbde60cd0d3fc313b89d
BLAKE2b-256 99542644263de0fc766537b4d782a0a8612c81a7d5cdd432538a282bab99f32a

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2f90db443315cb14e1dfb1bfc4462d65a2816934cae8f3f6b1d54f53871e0a6e
MD5 2e6f5a657aaf9642e8447fcd482718a2
BLAKE2b-256 3c5f543772c0898cf0408d3af6fb50f27d7b74d1423f20a820de00ae4b643f22

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 565.2 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 832b6babb135f37a018589d26e342dea07037e8229b1ab5e58521ad2e8ba4f6f
MD5 900baf9289725edcd930043cf401587e
BLAKE2b-256 97782773bf733195338be89889a43c25ada0b2a8a67e4bca7ab3a3c72f2971e9

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 404.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 807075ad41f7077f081e71c5d63a31faf01809eed9dc19980a52b13eabab2376
MD5 95023536f03d5fe994f22ed02298ff51
BLAKE2b-256 66b77f3a91854c1a1abfea085301e667bf6bf14a8f28d6e05f016d4f832316cf

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 348.9 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 6cf2a02d01c36aa14c349471302e68bab37ae02a94736c6846fef04c06cb469e
MD5 f537050b463ca567caba474a3b26c2e7
BLAKE2b-256 8ef71684e7c81aff93b3ca5fa2e3a2f66b2f1dc7af4cec5268904c6ef344406e

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 baed63e6eab4181009d1f9d3e4e1e29920bcdf52c0498652806c85cda2cde4d6
MD5 54e6c2d271425355b40e4c17945d3034
BLAKE2b-256 fe4254b3ddcdc66648cece0033e4d5979774863f4130749022100578e75ed58e

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 563.6 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c0b06dbf3ed801bb573d75b2ae5bfd0460a9fc39281871074f27298f106e2479
MD5 19e8cc11f754843446c75c02ced2e683
BLAKE2b-256 d079918425a215770d1387df3e0da532a0326a994a7104cd83d747bdea7075ce

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 404.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8bfff7d1979674dd5c47a28c554d675c1e6f807676d0987ef0fed39081485e2e
MD5 7ec71daba3a19cfa6348192763687ebd
BLAKE2b-256 9241571dae70e4df768b0982a7d3230ba6f6f9fc72ac816b96bc37e9ee7765af

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 349.0 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.16.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 9228005af833d39756f8e4a7344a931c961902d95cf905deed0401c3575dfc4c
MD5 6c1366be2085a8ae81691186749cefae
BLAKE2b-256 0ee48eea3fcd632f707cf116cf06efef181f82aec894454f7de81ee2168712db

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4d041c7bc5768f4bc80fd655a9a1ec465eaab33e880bd45f4035ea77be2a31d1
MD5 f15feba50020a90f4cdcd98e5e2fd464
BLAKE2b-256 5c052a40b1e30f2c7a793ba1aca26c1debcff6d83295e190f6b466c501149a7d

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.16.1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.16.1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 565.8 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for uharfbuzz-0.16.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a69e9d83fcc3a23aaa04d50c84e995d242459fc8e5fb65c913c30a9763d025e9
MD5 4a83176f348f4c1c919c71c235d4e246
BLAKE2b-256 09593a067ef9c768b3022aa4d1846809ae378ba083c2b4bd6f061afef1378f3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page