Commit43d6c341Recorded29 Mar 2026Repositorysigil-freetype

Add README

Changed
 README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
Diff
README.mdadded
@@ -0,0 +1,45 @@
+1
# sigil-freetype
+2
+3
FreeType font loading FFI bindings for [Sigil](https://codeberg.org/sigil/sigil).
+4
+5
## Features
+6
+7
- FreeType library initialization and cleanup
+8
- Font face loading from file paths
+9
- Character size and pixel size configuration
+10
- Glyph loading and metrics access
+11
- Character index lookup
+12
+13
## Usage
+14
+15
```scheme
+16
(import (sigil ffi)
+17
(freetype))
+18
+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
```
+27
+28
## Dependencies
+29
+30
- sigil-stdlib
+31
- sigil-ffi
+32
+33
Requires FreeType system library (`libfreetype`).
+34
+35
## Development
+36
+37
```bash
+38
guix shell -m ~/Projects/Code/sigil/sigil/manifest.scm
+39
sigil build --redirects dev-redirects.sgl
+40
sigil test --redirects dev-redirects.sgl
+41
```
+42
+43
## License
+44
+45
BSD-3-Clause