AtlatestRenderedmarkdown
Readme

sigil-harfbuzz

HarfBuzz text shaping FFI bindings for Sigil.

Features

  • Buffer creation and lifecycle management
  • Text shaping with HarfBuzz
  • Script and language tag helpers
  • Glyph info and position access
  • Segment property guessing

Usage

(import (sigil ffi)
        (freetype)
        (harfbuzz))

;; Create a HarfBuzz buffer and shape text
(let ((buf (hb-buffer-create)))
  (hb-buffer-add-utf8 buf "Hello")
  (hb-buffer-guess-segment-properties buf)
  ;; Shape with a font...
  (hb-buffer-destroy buf))

Dependencies

Requires HarfBuzz system library (libharfbuzz).

System Prerequisites

Development

sigil deps install
sigil build
sigil test

License

BSD-3-Clause