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
- Host: GitHub
- URL: https://github.com/matsadler/font_kit
- Owner: matsadler
- Created: 2021-08-01T21:00:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T15:11:34.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T18:06:40.731Z (5 months ago)
- Language: Ruby
- Size: 107 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
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