eliheuer

eliheuer / img2bez

Public

Autotrace raster images to bezier contours — Rust library and CLI tool

94
6
100% credibility
Found Mar 02, 2026 at 94 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

img2bez converts bitmap images of letter shapes into precise vector outlines ready for font design software.

How It Works

1
📸 Start with your sketch

You have a scanned or drawn image of a letter or shape ready to turn into editable curves for font making.

2
🛠️ Prepare your font space

Open or create a font project file where this new shape will live alongside other letters.

3
Trace the magic

Feed in your image, pick a name for the letter, set the size to fit your font, and watch it transform into smooth, clean outlines.

4
🔍 Check the match

View a handy side-by-side picture showing your original sketch next to the new curves, plus optional comparison to a reference design.

5
Save and tweak

The tool adds the perfect curves right into your font file, ready for fine-tuning.

🎉 Design your font

Jump into your favorite font editor to polish and use these pro-level vector paths in your custom typeface.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 94 to 94 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is img2bez?

img2bez is a Rust library and CLI tool that autotraces raster images, like scanned glyphs, into clean cubic Bezier contours ready for font editors such as RoboFont, Glyphs, or FontForge. Run `img2bez -i glyph.png -o MyFont.ufo -n A -u 0041` to trace a bitmap straight into a UFO source with proper metrics and Unicode. As a library, `trace()` delivers Vec outputs for custom pipelines.

Why is it gaining traction?

It stands out with font-specific tweaks like extrema-aware curve splitting for H/V handle alignment, grid snapping, and raster IoU evaluation against reference .glif files—features generic autotrace tools lack. Parallel processing via Rayon keeps it fast on multi-contour glyphs, and debug flags output thresholded bitmaps or pixel diffs for quick iteration. Rust ensures zero-cost safety and speed for production font workflows.

Who should use this?

Type designers digitizing legacy scans or renders into editable UFOs. Font engineers building automated pipelines with fontmake or fontc. RoboFont/Glyphs users needing quick raster-to-vector for prototypes or counters.

Verdict

Worth a spin for font glyph autotrace—solid CLI/docs and niche features punch above its 94 stars and 1.0% credibility score. Still v0.1.0 with room for broader image support and benchmarks, but MIT-licensed and debug-ready for early adopters.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.