CharlesAverill / prettybird

GNU General Public License v3.0
7 stars 2 forks source link

Compile to TTF/OTF #16

Closed CharlesAverill closed 2 years ago

CharlesAverill commented 2 years ago

Requires #14

CharlesAverill commented 2 years ago

Currently using my fork of bdf2ttf for this, but the conversion is pretty terrible

CharlesAverill commented 2 years ago

Current issue is that fontforge API font.autoTrace() using autotrace will do some BS tracing. We want it to trace the bitmap directly into an outline.

Compromise: Use autotrace binary with all of its CLI arguments to do the above and export as SVG, then import that SVG with fontforge font.importOutlines(svg_filename), then save to TTF

CharlesAverill commented 2 years ago

Or maybe just convert to SVG internally? Seems easy enough

CharlesAverill commented 2 years ago

Wait, maybe just use potrace

CharlesAverill commented 2 years ago

2ebf28013d58da9c2355f12f97bf75850e96805e