| Crates.io | geo_rusttype |
| lib.rs | geo_rusttype |
| version | 0.2.0 |
| created_at | 2025-10-09 23:09:01.117037+00 |
| updated_at | 2025-10-09 23:09:01.117037+00 |
| description | Convert texts as rusttype::Glpyhs to geo::MultiPolygon |
| homepage | https://github.com/WilstonOreo/geo_rusttype |
| repository | https://github.com/Wilstonoreo/geo_rusttype |
| max_upload_size | |
| id | 1876290 |
| size | 257,766 |
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.
cargo run --example write_svg
This will write an SVG file example.svg.
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));