AtlatestRepositorysigil-harfbuzz
sigil-harfbuzz / treeREADME.md
1
# sigil-harfbuzz3
HarfBuzz text shaping FFI bindings for [Sigil](https://codeberg.org/sigil/sigil).5
## Features7
- Buffer creation and lifecycle management8
- Text shaping with HarfBuzz9
- Script and language tag helpers10
- Glyph info and position access11
- Segment property guessing13
## Usage15
```scheme16
(import (sigil ffi)17
(freetype)18
(harfbuzz))20
;; Create a HarfBuzz buffer and shape text21
(let ((buf (hb-buffer-create)))22
(hb-buffer-add-utf8 buf "Hello")23
(hb-buffer-guess-segment-properties buf)24
;; Shape with a font...25
(hb-buffer-destroy buf))26
```28
## Dependencies30
- sigil-stdlib31
- sigil-ffi32
- [sigil-freetype](https://codeberg.org/sigil/sigil-freetype)34
Requires HarfBuzz system library (`libharfbuzz`).36
## System Prerequisites38
- [HarfBuzz](https://harfbuzz.github.io/) (`libharfbuzz`)39
- [FreeType](https://freetype.org/) (`libfreetype`) — required for tests41
## Development43
```bash44
sigil deps install45
sigil build46
sigil test47
```49
## License51
BSD-3-Clause