Skip to content

variable

Inspect variable font axes and named instances.

Quick Reference

bash
fontisan variable <font> [options]

Options

OptionDescription
--format FORMATOutput format (text, yaml, json)
--instancesShow named instances
--axesShow axes only

Output

Shows:

  • Variation axes with ranges and defaults
  • Named instances (presets)
  • Axis flags (hidden, etc.)

Examples

bash
# Full variable font info
fontisan variable VariableFont.ttf

# Show only axes
fontisan variable VariableFont.ttf --axes

# Show named instances
fontisan variable VariableFont.ttf --instances

# JSON output for processing
fontisan variable VariableFont.ttf --format json

Sample Output

Variable Font: VariableFont.ttf
================================

Axes (2)
--------
Tag     Name          Min      Default  Max      Flags
------  -----------   -----    -------  -----    -----
wght    Weight        100      400      900      -
wdth    Width         75%      100%     125%     -

Named Instances (6)
-------------------
Name                  Coordinates
------------------    --------------------
Thin                  wght:100
Light                 wght:300
Regular               wght:400
Medium                wght:500
Bold                  wght:700
Black                 wght:900

Understanding Axes

Standard Axes

TagNameTypical RangeDescription
wghtWeight1-999Font weight (thin to black)
wdthWidth50-200Width percentage
slntSlant-90 to +90Slant angle in degrees
italItalic0-1Italic toggle
opszOptical Size8-144Point size for optical sizing

Registered Axes

TagNameDescription
GRADGradeWeight change without width change
XTRAX-traX-height adjustment
XOPQX-opaqueHorizontal stroke adjustment
YOPQY-opaqueVertical stroke adjustment
YTRAY-traY-height adjustment
YTLCY-lowercaseLowercase height
YTUCY-uppercaseUppercase height
YTASY-ascenderAscender height
YTDEY-descenderDescender depth
YTFIY-figureFigure height

Use Cases

Discover Available Instances

bash
fontisan variable font.ttf --instances

Get Axis Range for Instance Generation

bash
# Get weight range
fontisan variable font.ttf --format json | jq '.axes[] | select(.tag=="wght")'

Check if Font is Variable

bash
if fontisan variable font.ttf 2>/dev/null; then
  echo "Variable font"
else
  echo "Static font"
fi
  • instance — Generate static instances
  • info — Get font information

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