Skip to content

Font Formats Overview

Fontisan supports a wide range of font formats.

Supported Formats

Modern Formats

FormatExtensionDescription
TrueType.ttfStandard TrueType font
OpenType.otfCFF-based OpenType font
WOFF.woffWeb Open Font Format
WOFF2.woff2Web Open Font Format 2

Legacy Formats

FormatExtensionDescription
Type 1.pfb, .pfaAdobe Type 1 font
dfont.dfontApple Data Fork font
TTC.ttcTrueType Collection
OTC.otcOpenType Collection

Other Formats

FormatExtensionDescription
SVG.svgSVG font

Guides

Format Detection

Fontisan automatically detects font format:

ruby
# Works with any format
font = Fontisan::FontLoader.load('font.ttf')
font = Fontisan::FontLoader.load('font.otf')
font = Fontisan::FontLoader.load('font.pfb')
font = Fontisan::FontLoader.load('font.woff2')

Conversion Matrix

FromTo TTFTo OTFTo WOFFTo WOFF2
TTF
OTF
Type 1
WOFF
WOFF2

Fontisan is a [Ribose](https://open.ribose.com/) project