Crate text_on_image

Source
Expand description

A library to make placing text on images easier. Extends draw_text_mut’s functionality from imageproc.

Structs§

FontBundle
A bundle of font related values.

Enums§

TextJustify
Defines how the text extends from the point you place it.
TextOnImageError
VerticalAnchor
Defines where the text sits relative to the vertical coordinate provided.
WrapBehavior
Choose whether text wraps if it would extend beyond a specified pixel length.

Functions§

text_on_image
Draws text on an image with support for text jusification, vertical anchor, and line wrapping.
text_on_image_draw_debug
Draws text on an image with a small cross where the coordinates are.