7sDream / fontfor

Find fonts which can show a specified character and preview them in terminal or browser.
GNU General Public License v3.0
160 stars 7 forks source link

Retrofitted to pure Rust #58

Closed 7sDream closed 10 months ago

7sDream commented 10 months ago

A few days ago, I opted to use fontconfig and freetype for this task, as I was operating in a macOS/Linux environment. However, the native Linux technology had issues, such as static linking not functioning in macOS (See #10), which led me to consider a macOS native technology (CoreText, See #18). This approach, however, required a deep understanding of the system API, and to be frank, I’m not a fan of Objective C.

Currently, I primarily use a Windows PC during my non-working hours, and this small tool remains crucial for my typography and writing projects. Therefore, I’ve decided to transition to a pure Rust implementation, with the assistance of the excellent crates, fontdb and ab-glyph.

I’ve already made some progress, such as updating and fixing clippy/rustfmt, upgrading the Rust edition, cleaning up dependencies, and so on. I’ve also commenced the rewriting process:

Current state: all feature works.