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

Uploaded Source

Built Distributions

uharfbuzz-0.15.0-cp39-cp39-win_amd64.whl (400.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

uharfbuzz-0.15.0-cp39-cp39-win32.whl (343.3 kB view details)

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9

uharfbuzz-0.15.0-cp39-cp39-macosx_10_9_x86_64.whl (564.3 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

uharfbuzz-0.15.0-cp38-cp38-win_amd64.whl (400.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

uharfbuzz-0.15.0-cp38-cp38-win32.whl (344.3 kB view details)

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8

uharfbuzz-0.15.0-cp38-cp38-macosx_10_9_x86_64.whl (559.2 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

uharfbuzz-0.15.0-cp37-cp37m-win_amd64.whl (397.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

uharfbuzz-0.15.0-cp37-cp37m-win32.whl (342.5 kB view details)

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.7m

uharfbuzz-0.15.0-cp37-cp37m-macosx_10_9_x86_64.whl (557.7 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

uharfbuzz-0.15.0-cp36-cp36m-win_amd64.whl (397.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

uharfbuzz-0.15.0-cp36-cp36m-win32.whl (342.6 kB view details)

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.6m

uharfbuzz-0.15.0-cp36-cp36m-macosx_10_9_x86_64.whl (559.6 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file uharfbuzz-0.15.0.zip.

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0.zip
Algorithm Hash digest
SHA256 5fa6ea32152a1e6fb5060b447f1b76e5e4e34bff288dca81c965fd45f67015d1
MD5 b52fa168d3b53455aea9062dafe42369
BLAKE2b-256 52838179e47f29a920a5ce8ddfdcbc516a5f24898026ecd389064cc6e5e5e701

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b60aab7d529fc04b8310691c7d1c4d9c4f2caba2a711371ab976fc170f6655a9
MD5 249acc2edc6d060989c1d0fefbb7dcd6
BLAKE2b-256 d402d2c01ba2c6dec3292024c55008c3439bbdb5800e38d1d03590c6d32ab847

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e2fcde591d22d719cd80a7d9f29a91af3f54e335dbd6d5031d28f5c47930faef
MD5 8135df74b475ed08ceee58dc5eafd7f5
BLAKE2b-256 e1653bbeb9962c472847c9918c78b903b922e4123688f32926ab48ff39000412

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.15.0-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for uharfbuzz-0.15.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8ca5f13778dfa75f60bf7e17f858499f4ffab5b49781921929a1a310e692cbd8
MD5 3d344064acb204abfd0f33bfe73444c1
BLAKE2b-256 baa105feda8727934e2d73827226c5246fa7c7fcb72dea9cdab93fbf34dee302

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0741f7254aee054bafbd1c4073131be44a5024c7d93a83b113e6c82ce6ef7ce9
MD5 c9c55e6d51b21e7bef6c48f54096dd57
BLAKE2b-256 f3567cbf5b22aa49fb3e99db30f21d7ca22a161b5a3e4e22061a9c0c2b12d0ba

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3927b2500f642b1b62a5c80e5f76df820a8bc374eccb572b3f42718193be9723
MD5 bd109569ca71b9c73b68ae1f39ffe90d
BLAKE2b-256 3fe28e5a6aa4693a027193b375eb61e8904c4cd7e1aad3541b96e809df4c675f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 289ae20811dfeca80e2ee392fa8e11f47dfef3bf23fdba335ea6b7ccd9832741
MD5 2926cb78e9629ac2252a2f22688fb4c0
BLAKE2b-256 43956038c001c4fbd8d7780c0d1b76bf31fad33dfd3c5c91e097cb2bab8efc1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.15.0-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for uharfbuzz-0.15.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6a33a7e4c00766cd7b0c0c25b4839b8dc2928daa241fbce2e01c4bc5ad3eff2b
MD5 8bc07eb7a3ff9ff4a2b92c3f33e7d22c
BLAKE2b-256 27686c0211762ed717028dc4348327d68358f7933d2f5742b34e843b86fbf491

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 39fa5e3fa22ffdf5b37d98c2a0b760a3b61eeacc0ffcef7a16072e7a04d63216
MD5 16563fbbf267c1c162ff2ad4f6d871f9
BLAKE2b-256 8664d3d3caadb563109c6cb151889a66700590f6c9db5786c88a5be28fbba783

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 52dda7f4c7ae40364fd7b9a96950ba33373bf94e7b14f53a5391118e4ab24c1f
MD5 79e65339587f5c60140191743870d770
BLAKE2b-256 35e357ff3975d2c163239276b456d3d50c4428d5291a095c60828b14a99e3b30

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 5eeb48db77316f6128dafbe68d0d32c89eef14256d461dc179be6cfabbd776d1
MD5 b63249645f0e1d4ee4197cda60d6bece
BLAKE2b-256 2f5594b5b11a4d0d25e6eeab923e257a61c935e8475af1d2c05379c6e6406184

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.15.0-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for uharfbuzz-0.15.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d862947c4a8c2bc1dcee93effaf50b77ecf1c76905e36d21874fc1ffe539abb7
MD5 d1ae1ce80d89c598c6ebb9e0bc25d779
BLAKE2b-256 0392cf9a0afe6fe7c52d5c04ce0b2974785b28a9bebd1ac7aca9bfd7107c64a0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 54a0671385dc9bb48a84406d2d1f8ab504d54f246d81cec7c672c3f380a16b09
MD5 d6d98a06ed8c2c101b22a8b0a6e2de71
BLAKE2b-256 cfc0e7418e8cbdd796d4b09c93fefec040d3a166129bedb3ac8a819facc7ffcf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d1ef2e9772498910553bec2a210a25ddd27029617851f2e890ae7dd306c52354
MD5 2e253cb0a793486abd83c2edf9fc0759
BLAKE2b-256 03b3542ee63d687967d6465d1df3a7eb50944edd185f125d0156aa871ad894b0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 058075393cf1b1ffad86d7ddede84c27d328e67bdac042c5302606e2c44973a8
MD5 e531d618dfa891005fca0d6f7f1e15d2
BLAKE2b-256 66c61e3f2723be5362f113156754a00565ff4d3a1837c7f3a177d0c4d141b1b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.15.0-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.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for uharfbuzz-0.15.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e1dbe9643a2945f894346ab5ba86af61686d2d3ae38ab05d0769a14f64c07ab1
MD5 dd4e8d3dc71cc43022862e1ad041d6c2
BLAKE2b-256 34fcf0d28a158bc10e445836a9d482cd75cfb0588d270b5bbc6762e34828dd0d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uharfbuzz-0.15.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 054eda73dd437817e50a441ae5ceafc539c9cac226d065e180d47e354ca7fa0d
MD5 57a9103708384bad3008ab6a522f06eb
BLAKE2b-256 1397bb9261cce1debf18d6c664f30dc36e22bae45d4609d70e5f5b02962a123e

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