Skip to content

Fontist Ruby API

Fontist can be used as a Ruby library for programmatic font management.

Overview

The Fontist Ruby API provides interfaces for:

  • Fontist::Font — Find and install fonts
  • Fontist::Formula — Access formula information
  • Fontist::Manifest — Work with font manifests
  • Fontist::Fontconfig — Integrate with fontconfig

Installation

Add to your Gemfile:

ruby
gem 'fontist'

Or install directly:

bash
gem install fontist

Quick Example

ruby
require 'fontist'

# Find a font
paths = Fontist::Font.find("Open Sans")

# Install a font
paths = Fontist::Font.install("Open Sans", confirmation: "yes")

Next Steps

Fontist is riboseopen