| Crates.io | sleipnir |
| lib.rs | sleipnir |
| version | 0.2.14 |
| created_at | 2024-03-15 22:57:05.414155+00 |
| updated_at | 2026-01-13 16:22:37.255373+00 |
| description | Memory safe font operations for Google Fonts. |
| homepage | |
| repository | https://github.com/googlefonts/sleipnir |
| max_upload_size | |
| id | 1175230 |
| size | 961,890 |
The name is a reference to Sleipnir, in keeping with other Norse names for our memory safe stuff.
copied from fontations
We use [cargo-release] to help guide the release process. It can be installed
with cargo install cargo-release. You may need to install pkg-config via your
package manager for this to work.
Releasing involves the following steps:
Determine which crates may need to be published: run cargo release changes
to see which crates have been modified since their last release.
Determine the new versions for the crates.
Update manifest versions and release. ./resources/scripts/bump-version.sh orchestrates this process.
cargo release does all the heavy lifting# To see usage
./resources/scripts/bump-version.sh
# To do the thing
./resources/scripts/bump-version.sh sleipnir patch
Commit these changes to a new branch, get it approved and merged, and switch
to the up-to-date main.
Publish the crates. ./resources/scripts/release.sh orchestrates the process.
# To see usage
./resources/scripts/release.sh
# To do the thing
./resources/scripts/release.sh sleipnir
tosvg is a command-line tool that converts all glyphs in a font file to
individual SVG files.
# Convert all glyphs in a font to SVGs in /tmp/output
cargo run --example tosvg -- --font path/to/font.ttf --output-dir /tmp/output
# Convert with specific variational coordinates (e.g., for a variable font)
cargo run --example tosvg -- --font path/to/font.ttf --coords 0.5,1.0