geo_rusttype

Crates.iogeo_rusttype
lib.rsgeo_rusttype
version0.2.0
created_at2025-10-09 23:09:01.117037+00
updated_at2025-10-09 23:09:01.117037+00
descriptionConvert texts as rusttype::Glpyhs to geo::MultiPolygon
homepagehttps://github.com/WilstonOreo/geo_rusttype
repositoryhttps://github.com/Wilstonoreo/geo_rusttype
max_upload_size
id1876290
size257,766
Wilston Oreo (WilstonOreo)

documentation

https://docs.rs

README

geo_rusttype

example.svg

This crate provides methods to convert rusttype glyphs of a font into geo multi polygons.

Uses rusttype for font-handling, and bezier-rs and geo for geometry processing.

Example

cargo run --example write_svg

This will write an SVG file example.svg.

Usage

Use the function text_to_multipolygon and the TextOptions struct to generate a polygon from a text.

let multi_polygon = geo_rusttype::text_to_multi_polygon(
            "geo_RustType",
            TextOptions::new(32.0, font, None, None));
Commit count: 0

cargo fmt