Skip to content

Releases: ponte-vecchio/otf2fontspec

v0.2.0

15 Jan 04:54
be6bb6e
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Minor bump in version, but a significant improvement in my Rust skills and how I approach engineering a command-line app.

Yes?

Adds some backwork to replicate what was effectively a one-liner shell script to find GSUB/GPOS table for a given OTF font at a given directory:

fd -e otf "$FONTNAME([-\s]?[rR](egular|oman))?.otf$" $FONTDIR -x otfinfo -f | cut -f1

What fontfinder does is the fd part without the -x option. I've replaced fd's core functionality with std::fs and std::path::Path, the regular expression functionality with regex, fetching $HOME with std::env etc.

In that process, I've learned to use cfg! macro to target macOS only (which is my current dev system), possibility of using structs and painfully learnt to write better code.

Next up

Now that I can get otf2fontspec to find things, next is to explore the font package to garner details on GSUB/GPOS tables.

If you really care

Changelog: 0.1.0...0.2.0

initial

13 Jan 08:23
000cf6e
Compare
Choose a tag to compare