Rendro.Text.Shaper (Rendro v0.2.0)

Copy Markdown View Source

Wraps the harfbuzz_ex text shaping engine to return exact glyphs and bounding boxes. Also detects missing glyph IDs from the shaping engine and emits structured Telemetry events instead of crashing.

Summary

Functions

Shapes a given text string using the specified font. Returns {:ok, glyphs} where glyphs is a list of HarfbuzzEx.Shaper.Glyph structs.

Functions

shape(font, text)

Shapes a given text string using the specified font. Returns {:ok, glyphs} where glyphs is a list of HarfbuzzEx.Shaper.Glyph structs.