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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

uharfbuzz-0.14.1a1-cp37-cp37m-win_amd64.whl (396.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

uharfbuzz-0.14.1a1-cp36-cp36m-win_amd64.whl (396.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-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.1a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 22ef833f970754a10f071fde6070911c3eab10d7fec63ff864c8983adbf58f6e
MD5 ff4ac5a0c04e1f31ff039afa7f6f108c
BLAKE2b-256 8cf14354effac0cc326106c09f6a7f28c6045ac60f846a3b73807dd65eed93bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-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.1a1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 96e5cb2476dd111bff324f95c67c56781691093b433f5c022014af6a4542c1cb
MD5 04cd87eaeb515e3770de4e30c284a599
BLAKE2b-256 282aefd66fdf195e7add7b936fb8b98423eb44918d11a64b23c1b1207eca8059

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-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.1a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 967582ba82968abea1474e882449a1e2aac57e1b3cd1cfa77ef50d6ded3bfcaf
MD5 72018cf9056384a67760cd53484290a9
BLAKE2b-256 d60e316a8e92bd8e7da40f750c69a6d13a5419e0db81592e4c98e918fd7da741

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-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.1a1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0e3979d1034d0bea663375f11d9c29a8ca331d63feaddaf88ddb530882b6ff92
MD5 8d8f74ce5fac8d6afbe649a5e7ee660a
BLAKE2b-256 9d6d11008530d1446c7ab5e0a07dd44febba1ecc1cd437ba77d696c72d1c5ced

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 396.4 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.1a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 8ee1dd75de01c229e910411a983e20be7b44a9ad94ccc172aef37a9d649cdfa7
MD5 d1a389d952b907f0788d7b09fcc7b211
BLAKE2b-256 8cefac374346467d29b1f594d4a7334958abc5fccda3dac2dbf87157a94aa057

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-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.1a1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 7fbd55ca9bb70c4b275b5fe317521a644b2fd7110f2dead132cce7c2033baec1
MD5 2f2f20113a21e7234c2abb880a362b22
BLAKE2b-256 d0f0ab67d879921d2d6d3e2f132b877935329c51e71c0ad16efacc911e4546c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 396.6 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.1a1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 99029e8780fa2dab71167285bfdc616c94545a4b1312c4fb446f89680a816e7c
MD5 d8ed87238a622c0e0297887305f2ab62
BLAKE2b-256 91f51c109ca06c7ec015e9ba7384126a4c2bb3283eb35ebc4e1a4cda692763bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uharfbuzz-0.14.1a1-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.1a1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 554c8b92d96869e5e2550cd1b3faf605f24236204f8d15f918e24bd5dd700700
MD5 3bb4ebc41c260de1ad2aa2240421f8fb
BLAKE2b-256 72677852113e37291000702af128c18894aa20c4542880d98125d1fb4aae1f89

See more details on using hashes here.

Supported by

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