Skip to content

matsadler/font_kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FontKit

Ruby bindings to the Rust font-kit library

Status

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.

Font format support

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.

Install

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

Test

Run

rake test

About

Ruby bindings to Rust's font-kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published