Ruby bindings to the Rust font-kit library
This is just an example demonstrating it is possible to bind font-kit
to Ruby. It likely isn’t very useful yet, and may not see any further development.
Rust’s font-kit delegates to the system font library, so the supported font formats depend on your system. The usual suspects like .ttf, .otf, .woff, and .woff2 should be supported.
On BSD/Linux systems you must have at least version 2.10.2 of freetype to support .woff2 fonts.
This gem requires a Rust compiler and the cargo
build tool to build the gem’s native extension. See www.rust-lang.org/tools/install for how to install Rust. cargo
is usually part of the Rust installation.
Additionally libclang
is required. This is generally part of the llvm
or clang
package for your operating system. On macOS it can be installed via Homebrew like:
brew install llvm
Run
rake test