All Projects → harfbuzz → uharfbuzz

harfbuzz / uharfbuzz

Licence: Apache-2.0 license
An opinionated HarfBuzz Python binding

Programming Languages

cython
566 projects
python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to uharfbuzz

Tehreer-Android
Standalone text engine for Android aimed to be free from platform limitations
Stars: ✭ 61 (+45.24%)
Mutual labels:  fonts, opentype
variable-font-collection-test
Variable Font Collection Test
Stars: ✭ 26 (-38.1%)
Mutual labels:  fonts, opentype
otfed
An OpenType font format encoder & decoder written in OCaml
Stars: ✭ 15 (-64.29%)
Mutual labels:  fonts, opentype
bitsnpicas
Bits'N'Picas - Bitmap & Emoji Font Creation & Conversion Tools
Stars: ✭ 171 (+307.14%)
Mutual labels:  fonts, opentype
Awesome Typography
✏︎ Curated list about digital typography 🔥
Stars: ✭ 947 (+2154.76%)
Mutual labels:  fonts, opentype
text-rendering-tests
Unicode’s test suite for text rendering engines
Stars: ✭ 135 (+221.43%)
Mutual labels:  fonts, opentype
Tehreer-Cocoa
Standalone text engine for iOS
Stars: ✭ 31 (-26.19%)
Mutual labels:  fonts, opentype
Harfbuzz
HarfBuzz text shaping engine
Stars: ✭ 2,206 (+5152.38%)
Mutual labels:  fonts, opentype
fdiff
An OpenType table diff tool for fonts. Based on the fontTools TTX format.
Stars: ✭ 33 (-21.43%)
Mutual labels:  fonts, opentype
xits
XITS - OpenType implementation of STIX fonts with math support
Stars: ✭ 299 (+611.9%)
Mutual labels:  opentype
Trispace
2 axes/variable/mostly monospace
Stars: ✭ 49 (+16.67%)
Mutual labels:  fonts
react-with-async-fonts
🔠 React module for working with custom web fonts
Stars: ✭ 22 (-47.62%)
Mutual labels:  fonts
react-native-styled-text
Styled Text for React Native
Stars: ✭ 57 (+35.71%)
Mutual labels:  fonts
Anybody
3 axes/variable/sans/super compressed to super extended
Stars: ✭ 73 (+73.81%)
Mutual labels:  fonts
font-config-info
Print Linux font configuration
Stars: ✭ 21 (-50%)
Mutual labels:  fonts
AACustomFont
[UNMAINTAINED] AACustomFont is a lightweight custom font binder in XML directly in TextView, Button, EditText, RadioButton, CheckBox tags. The library is aimed to avoid custom views for custom fonts in XML and to minimize the JAVA code for setting the TypeFaces for each view.
Stars: ✭ 76 (+80.95%)
Mutual labels:  fonts
FontRegister
FontRegister is a small Windows utility to install fonts and/or repair the font registry via commandline.
Stars: ✭ 17 (-59.52%)
Mutual labels:  fonts
figma-linux-font-helper
Figma Linux Font Helper
Stars: ✭ 110 (+161.9%)
Mutual labels:  fonts
MultiFontViewKotlin-Android
MultiFontViewKotlin library can be used to select custom fonts for the view dynamically in your XML
Stars: ✭ 13 (-69.05%)
Mutual labels:  fonts
ttf-explorer
A simple tool to explore a TrueType font content as a tree
Stars: ✭ 22 (-47.62%)
Mutual labels:  opentype

Githun CI Status PyPI

uharfbuzz

Streamlined Cython bindings for the HarfBuzz shaping engine.

Example

import sys

import uharfbuzz as hb


fontfile = sys.argv[1]
text = sys.argv[2]

blob = hb.Blob.from_file_path(fontfile)
face = hb.Face(blob)
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. The subject line will be the release name and the message body will be the release notes.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].