AtlatestRepositorysigil-freetype
sigil-freetype / treeREADME.md
1
# sigil-freetype3
FreeType font loading FFI bindings for [Sigil](https://codeberg.org/sigil/sigil).5
## Features7
- FreeType library initialization and cleanup8
- Font face loading from file paths9
- Character size and pixel size configuration10
- Glyph loading and metrics access11
- Character index lookup13
## Usage15
```scheme16
(import (sigil ffi)17
(freetype))19
(let* ((lib (ft-init-freetype))20
(face (ft-new-face lib "/path/to/font.ttf" 0)))21
(ft-set-pixel-sizes face 0 24)22
(ft-load-char face 65 FT_LOAD_RENDER)23
;; Access glyph metrics...24
(ft-done-face face)25
(ft-done-freetype lib))26
```28
## Dependencies30
- sigil-stdlib31
- sigil-ffi33
Requires FreeType system library (`libfreetype`).35
## System Prerequisites37
- [FreeType](https://freetype.org/) (`libfreetype`)39
## Development41
```bash42
sigil deps install43
sigil build44
sigil test45
```47
## License49
BSD-3-Clause