plotive-text 0.3.0

Text shaping and rendering library for plotive
Documentation

plotive-text

A crate for text shaping, layout and rendering, used by plotive.

This crate provides the following main functionalities:

  • fontdb: This is a copied and modified version of the fontdb crate.
  • font: Font description and matching utilities.
  • line: Text layout and shaping for single lines of text.
  • rich: Rich text parsing and rendering.

For both single line text and rich text, the text is first analyzed for bidirectional runs using the unicode-bidi crate, then each run is shaped separately using rustybuzz (a Rust port of HarfBuzz).

Text is rendered as vector paths using the outline data from the font files, parsed with ttf-parser.