Crate femtovg

source ·
Expand description

The femtovg API is (like NanoVG) loosely modeled on the HTML5 Canvas API.

The coordinate system’s origin is the top-left corner, with positive X rightwards, positive Y downwards.

Re-exports§

Modules§

  • Module containing renderer implementations.

Structs§

Enums§

  • Text horizontal alignment: Left (default), Center, Right.
  • Text baseline vertical alignment: Top, Middle, Alphabetic (default), Bottom.
  • Blend factors.
  • Predefined composite oprations.
  • Enum with all possible canvas errors that could occur.
  • The fill rule used when filling paths: EvenOdd, NonZero (default).
  • ImageFilter allows specifying the type of filter to apply to images with crate::Canvas::filter_image.
  • Image source
  • Determines the shape used to draw the end points of lines: Butt (default), Round, Square.
  • Determines the shape used to join two line segments where they meet. Miter (default), Round, Bevel.
  • Image format: Rgb8, Rgba8, Gray8.
  • Used to specify Solid/Hole when adding shapes to a path.
  • A verb describes how to interpret one or more points to continue the countour of a Path.