An open API service indexing awesome lists of open source software.

https://github.com/matsadler/font_kit

Ruby bindings to Rust's font-kit
https://github.com/matsadler/font_kit

Last synced: 3 months ago
JSON representation

Ruby bindings to Rust's font-kit

Awesome Lists containing this project

README

        

= FontKit

Ruby bindings to the Rust {font-kit library}[https://github.com/servo/font-kit]

== 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 https://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