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

Uploaded Source

Built Distributions

uharfbuzz-0.17.0-cp39-cp39-win_amd64.whl (418.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

uharfbuzz-0.17.0-cp39-cp39-win32.whl (360.0 kB view details)

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

uharfbuzz-0.17.0-cp39-cp39-macosx_10_9_x86_64.whl (578.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

uharfbuzz-0.17.0-cp38-cp38-win_amd64.whl (418.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

uharfbuzz-0.17.0-cp38-cp38-win32.whl (361.0 kB view details)

Uploaded CPython 3.8 Windows x86

uharfbuzz-0.17.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

uharfbuzz-0.17.0-cp38-cp38-macosx_10_9_x86_64.whl (571.5 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

uharfbuzz-0.17.0-cp37-cp37m-win_amd64.whl (415.3 kB view details)

Uploaded CPython 3.7m Windows x86-64

uharfbuzz-0.17.0-cp37-cp37m-win32.whl (358.4 kB view details)

Uploaded CPython 3.7m Windows x86

uharfbuzz-0.17.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

uharfbuzz-0.17.0-cp37-cp37m-macosx_10_9_x86_64.whl (569.7 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

uharfbuzz-0.17.0-cp36-cp36m-win_amd64.whl (415.3 kB view details)

Uploaded CPython 3.6m Windows x86-64

uharfbuzz-0.17.0-cp36-cp36m-win32.whl (358.5 kB view details)

Uploaded CPython 3.6m Windows x86

uharfbuzz-0.17.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

uharfbuzz-0.17.0-cp36-cp36m-macosx_10_9_x86_64.whl (572.0 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file uharfbuzz-0.17.0.zip.

File metadata

  • Download URL: uharfbuzz-0.17.0.zip
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for uharfbuzz-0.17.0.zip
Algorithm Hash digest
SHA256 6e362a6918cfc5225bfa22d10c98c0455618ce4d30ac30fc00e68a851b9f05a0
MD5 bc8c6c6512e3aaa8ca5a9c9a0dd3f0cf
BLAKE2b-256 1d36d181ee93212bc4255143d045770b70985b28a2d8a6d1b90bcaad351587b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 418.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 623b9f1c3f8a7d8bbdd61aba920eca0f7e64568b4c60d600cc29b6555c556864
MD5 66aaf5a802a56cabb60e11169460be49
BLAKE2b-256 1bcc60a662c8a52740ac86232e337b1863c99da9efb7196ab6ef6fa2516d7065

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 360.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d817fe89c3dff3a2cee8ddca0ba4b0fb3edad1a80122ad5e658c5bd2405076fc
MD5 259dc0b4695f89fdd302e1832c72fb6f
BLAKE2b-256 2756007b0534e544d70d71b95754cc3f37e8dbc2af04faf21ae87fbe84b67491

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.17.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uharfbuzz-0.17.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a009da2daddf66e6926942aa24669d98af435df66f3f6262ba4d78c9d1a32199
MD5 657376addc4c852ad25717dfb58c4005
BLAKE2b-256 5ec4ac5613667db59f78b1fbf6334811ae73050576499f9c5db74b13b5b74b6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 578.0 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for uharfbuzz-0.17.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4a7424eccae535edc071d0d437d47e9612a46afe531df5a8c5f92dc8d16347d9
MD5 23ffb8bd3d8c579df0b87316d8b71743
BLAKE2b-256 6901da955e9bd3d586f3c6083d497c05ddf66ac871da8fd0194fe7543b29edf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 418.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d9dda96c2875e62620c0ea6cf5f75a852ff11a6d3609f7096ea72340064bc33b
MD5 9daa762115886a002e974eaa2dffc964
BLAKE2b-256 c58f69cfdffcd77c9c8b46c61327b8d82c6c3f94746eb062465ff387ad6efe7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 361.0 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bdda86b31c260f353002197acfe92143308967fe1ccb12fb2cc302fd8a44cb04
MD5 a3086316cb04bfb6a81004c3c16d8b28
BLAKE2b-256 dabdcbd2f9de81a0ee2f7b19f1d9621aa3a6eb62ea7bad835e3087ca7d06cbcd

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.17.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uharfbuzz-0.17.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 62bb34a8f888dfa9027ca69889fbc14f2c188e0f636102cc21ab4ac09138dc11
MD5 4cc51707518a8672113d416ed196665d
BLAKE2b-256 5c313d52625be5b2045359108d4bcb8c5d8d3485cb021d8bef3277a96da38360

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 571.5 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for uharfbuzz-0.17.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 21d2707b1ae11b9a112ace51c6fae6c081304843ffe58769ce64b2c0b43034a5
MD5 6d1f6b1e160467d92d7b4c219bdf4c82
BLAKE2b-256 e6911019dfab95229bdfaa017a19da1b1e0bf656fead4832907efad7c2adb82c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 415.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 02221130272229fa935f7ea891f31aa2be7ccd5286d50e10f61ba8a51c72a469
MD5 c5e6b25edac6f9b0bd775085f998096e
BLAKE2b-256 84afe6f1a4d78bcfc679b76f3439aa0ade6d1fe58f5a8997114e75e58dbd4b60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 358.4 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 4bf333d13e1f038b0aaa174841a4d3d64a94df27bbb81c391f9c307ccb8972a1
MD5 f4f3c5aba01cf24c7286c5b082f71078
BLAKE2b-256 a1073e29cd172a5c0922378faad0ed3e0e07c7f441b2a6e95d16f863b25f6c9f

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.17.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uharfbuzz-0.17.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e04ecf833e9ed63dd5067985014359adc10ad83506de3da64aa7cfbcfe31f60b
MD5 b5e88eb6c89e4284469d770b365b3387
BLAKE2b-256 75d335b7a3c73c1f9672cc80144162cd4ac9965161b67e69403f498a2a217e64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 569.7 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for uharfbuzz-0.17.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d80219bfb77538767f3d41d6451ea631f7e290dbb0350b6e3da50e5c05ced405
MD5 b33dd89277e31e8f53ffacb222a6954f
BLAKE2b-256 e815ed75f3853d4feeecb84da9fe66c6fb0a5bfe03127e25491a1c6aebaa32a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 415.3 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1db36957406b398d6cd8459c8c4b289a936c5baf6cbd06ee9373954f434d2032
MD5 a332636b1c0ab0703d22619eb4817dda
BLAKE2b-256 8f7206c5a77352cbec0ac6438dba2ef8ef68a12fd972497f0a6a86e6b17fd09f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 358.5 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for uharfbuzz-0.17.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 50906ba9db421909abbba80a7aa9b3f9adeb7d057fe6edfafe19452ae619bb01
MD5 3436d7cec11e031b6609f6f26e7e1741
BLAKE2b-256 cf7c11c9a2cceadef9bb7fae3f1fd19aade632d101a2d2d3e0887ba007b6083d

See more details on using hashes here.

File details

Details for the file uharfbuzz-0.17.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for uharfbuzz-0.17.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fd533b693882276781b4a2ef9e90cc66bc0461ad6b3c0a1dc7bb774eb8117114
MD5 04633660dfe2d59b7ae9c359e75447e9
BLAKE2b-256 be98df1f4444edf73cd0716f35640b09f653b3b76ddefd7cbc5e4d34bb64bb92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.17.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 572.0 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for uharfbuzz-0.17.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 07e99e87d4b0e6f228971eccbe8c6529e52aa84b177472b3e947b327f5ad3f12
MD5 4a14fc5e1a627fe36c483fa6efe9b177
BLAKE2b-256 d60313a81dbe7ccee8a2209d4d0cf2b50276d08aac8a9ec6ca8ce0d4c3b7025f

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