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.14.1a2.zip (1.1 MB view details)

Uploaded Source

Built Distributions

uharfbuzz-0.14.1a2-cp39-cp39-win_amd64.whl (398.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

uharfbuzz-0.14.1a2-cp39-cp39-win32.whl (343.5 kB view details)

Uploaded CPython 3.9 Windows x86

uharfbuzz-0.14.1a2-cp39-cp39-manylinux1_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.9

uharfbuzz-0.14.1a2-cp39-cp39-macosx_10_9_x86_64.whl (557.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

uharfbuzz-0.14.1a2-cp38-cp38-win_amd64.whl (399.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

uharfbuzz-0.14.1a2-cp38-cp38-win32.whl (344.2 kB view details)

Uploaded CPython 3.8 Windows x86

uharfbuzz-0.14.1a2-cp38-cp38-manylinux1_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.8

uharfbuzz-0.14.1a2-cp38-cp38-macosx_10_9_x86_64.whl (550.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

uharfbuzz-0.14.1a2-cp37-cp37m-win_amd64.whl (396.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

uharfbuzz-0.14.1a2-cp37-cp37m-win32.whl (342.3 kB view details)

Uploaded CPython 3.7m Windows x86

uharfbuzz-0.14.1a2-cp37-cp37m-manylinux1_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.7m

uharfbuzz-0.14.1a2-cp37-cp37m-macosx_10_9_x86_64.whl (548.8 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

uharfbuzz-0.14.1a2-cp36-cp36m-win_amd64.whl (396.5 kB view details)

Uploaded CPython 3.6m Windows x86-64

uharfbuzz-0.14.1a2-cp36-cp36m-win32.whl (342.5 kB view details)

Uploaded CPython 3.6m Windows x86

uharfbuzz-0.14.1a2-cp36-cp36m-manylinux1_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.6m

uharfbuzz-0.14.1a2-cp36-cp36m-macosx_10_9_x86_64.whl (551.5 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file uharfbuzz-0.14.1a2.zip.

File metadata

  • Download URL: uharfbuzz-0.14.1a2.zip
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2.zip
Algorithm Hash digest
SHA256 aafaa0b914a2b203ae7f2f339f23d31a50f8a6275fc46af13beb985d6bce4a5b
MD5 76d3992d732bac5ab9b9a674700f9be4
BLAKE2b-256 f13533c70b18b28981645f488e8b4b0e4a395995e0d3c33f94a94fd0213a6595

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 398.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 01331b1fd06cde9dfd96ab5583894b1d953edabc4d2ceef1dc9297a61432159f
MD5 c13a2e9faad3afcd1e6c0a4e851f29c1
BLAKE2b-256 d54eec3a21c56eb09466a3220ddc559473b9518d002f8c3757912fb74555e597

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp39-cp39-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 343.5 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b179c690e192d320f638849b2947c86168fdc4a900333b1c7d4bf97ee8df46a3
MD5 44c7b6c7fe91dfc12eef66e7c6b85e52
BLAKE2b-256 3f956c67d54da8924832b667f4fabd03f3a1d9d9d01aeceac8e7fd3bd2d99b53

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0b78f3dedd4933f1e8f02f23d198c5b95096f3974a3d75270b1f1d4c57a68d75
MD5 87e0b9ac1d9fcb7643f58005a69483c2
BLAKE2b-256 7c41e01d135e864ec51f56712ede4c1fb2c1c88663d8376a137544da915c76ba

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 557.1 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f5a7401b0e80e2d99d46239188d1748e3f8eb9a8c379a4054a79da7919c10697
MD5 bc95d8c37e71865dad9900e66efe3569
BLAKE2b-256 421e7e527d5e3b8fe38711d743f1aaec202e892b7c8519f571cca15cbc5719b0

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 399.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 04667a09326e82279257f9c7f69f33418542df721bf56005293f50c07897f7d2
MD5 3eda9f8f7887141eaa1e3dc1f2fd83b9
BLAKE2b-256 a8920b27f50f07d98a02e1f082419230a8e408cdfd9e847dfbcd28bb847679ec

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp38-cp38-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 344.2 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 357ff574dff55787299c3f0529eeb7c2571a10938de6666993b881ab30bc1e89
MD5 9ec0a1a41e547fa1045a8c853029f8bd
BLAKE2b-256 91be5784a2053435e067b3651fe2c74dc3452d53517514919e4bdbf37da5dd0c

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 70e07c2e2895403b8160895b18dc9a16cef9a1076c4eef0672fb2d30f96da10f
MD5 4ae0096dd5dbbdf8eec7ea6ad41351e3
BLAKE2b-256 593e671d9fd9368a3bc24f81ff0042671e56d6624feeca5ef842bf48de9360e5

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 550.9 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 20e9b4bc18fa08aaf10127058faeec657d77a48d00aa80420c1506cb15d68d5a
MD5 6d2986fb661da4eafd4a8081430d753b
BLAKE2b-256 7ef83dc8998af2d83e09385d4a00e5140b0b7e749737860657724eb781b7a59d

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 396.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f1eb6286039f7fff3b06bcaa414fe1f0951bf54bc45261edef72868895cfa324
MD5 a16bdf8cb05ac17d29cfbe9e417780e9
BLAKE2b-256 922dd78604a18edc1d03e484832bf190f4eec889e40124be4d20e53af04c2516

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp37-cp37m-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 342.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 59668f4d774aa5e7db36421217c4855b00c09935482fc440449aa8c52fb69d95
MD5 e2b1cf6751e6789da069f6d30278b5d2
BLAKE2b-256 853d8831911b856f20b0618b158e0b1fc66b4333c8fc98de7d9f341e32736c1f

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d17de21b62d750dcca779aaafa2ca1d0436697a1f1b132edc6e302a4b94e7a98
MD5 a767eb1d61ee68371d6b04bbbd7c81e9
BLAKE2b-256 71367c55f7cda039f93078daf761b4ac8a55306f77c920c4f30298b39e0823a2

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 548.8 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1909f7d3e6144fe0d093fc8d9af00c0ddf881aee62ff8d4337be9e46e1c23d68
MD5 064582f066e50ae4bfa9dcbb90614d96
BLAKE2b-256 871a06d52b9411d60805e1f497cbd9a76fc7a420235303472d27ce8bef80dcad

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 396.5 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 76557df4597105f09a8e32d3caa091e84810e3a0ad836be74857402f163ef2b6
MD5 cadf27b14fb6963ef06f88501166bc1c
BLAKE2b-256 115412aac1955e0b8479673e5f73997f9d476b540a4612c7b5c79813f8e41136

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp36-cp36m-win32.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 342.5 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.14.1a2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 051878c026fe15bdf85eef05d6a2a02856a2e3564cb543b0362d0f1cc27e9108
MD5 20f30b3be890524fbb6bc8b930d462c0
BLAKE2b-256 99f2ce607e9b8b1af0dbfe609a2ead8de58f3c05791fc8277be1a426057fb6b5

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 caeeada44ddcbdd7dc7b24e07cd6efe1596c26eff9dbbe705e639e8f6a3df633
MD5 65b31a992d41bf754e4e5259520e88c9
BLAKE2b-256 3cfb60b16df9c7d0a1dac4a5bd468066d453b3d8d38ef9023325310e8fba882a

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.14.1a2-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: uharfbuzz-0.14.1a2-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 551.5 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for uharfbuzz-0.14.1a2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a164e4dae1b47b72e33fa7df8bd9a8a0183793cd2dc5486d97c6e8118127eaf6
MD5 e4aa44896f09ca57d841ea0f2a516e78
BLAKE2b-256 643669fa3bac0fdde40040c37c55a83764578486c5051d16a439b59a1560c5f6

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