linebender / runebender

A font editor written in Rust.
Apache License 2.0
765 stars 37 forks source link

First draft at a text preview window #223

Closed cmyr closed 3 years ago

cmyr commented 3 years ago

You can open this from the windows menu, or with ctrl(cmd)+alt+p.

It's very barebones; you can set the font size and the sample text, and we will generate cmap, hhea, and hmtx tables, and then feed those to harfbuzz and ask it to shape your sample text.

This is clearly barebones; there's no GSUB/GPOS, for instance.

That said, it's reasonably useful for latin:

https://user-images.githubusercontent.com/3330916/107834070-38f98a80-6d63-11eb-8cb3-27ff7f6bf12c.mov

github-actions[bot] commented 3 years ago

🗜 Bloat check ⚖️

Comparing 3b62992f against 247d54fa

target old size new size difference
target/release/runebender 5.9 MB 6.77 MB 899 KB (14.89%)
target/debug/runebender 29.26 MB 33.79 MB 4.53 MB (15.47%)
github-actions[bot] commented 3 years ago

🗜 Bloat check ⚖️

Comparing 016b91db against 247d54fa

target old size new size difference
target/release/runebender 5.9 MB 6.77 MB 899 KB (14.89%)
target/debug/runebender 29.26 MB 33.79 MB 4.53 MB (15.47%)