Skip to content

Python (Cython) binding for harfbuzz an OpenType text shaping.

Notifications You must be signed in to change notification settings

RevengeComing/pyharfbuzz

Repository files navigation

Python binding for Harfbuzz an OpenType text shaping engine.

Installation

First you need to install freetype2 and harfbuzz. then You can install pyharfbuzz using pip:

pip install pyharfbuzz

Usage

Use shape function to shape your text text:

from pyharfbuzz import shape

your_shaped_text_info = shape('Vazir.ttf', 'your text')

To use lower level APIs see example.py.

Open an issue if you need any harfbuzz API that pyharfbuzz doesn't support.

About

Python (Cython) binding for harfbuzz an OpenType text shaping.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published