---
name: "getinstrs"
section: "1"
platform: "linux"
package: "xgridfit"
version: "2.3-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/getinstrs"
---

# getinstrs(1)

extracts TrueType instructions for one or more glyphs from a font.

## NAME

**getinstrs** - extracts TrueType instructions for one or more glyphs from a font.

## SYNOPSIS

**getinstrs \[options\]** *fontfile* *glyphs*...

## DESCRIPTION

**getinstrs** calls the FontForge Python extension to extract instructions from a TrueType font (either .ttf or .sfd) and print them to stdout (redirect to capture them in a file). By default the instructions are printed as an Xgridfit glyph program. Use the -r, --raw command-line option to print them as "raw" instructions instead, or use -x, --xgridfit to enclose the glyph program(s) in an \<xgridfit\> element, making a complete, valid Xgridfit program.

## OPTIONS

- \-h, --help

  Display a help message and exit.

- \-r, --raw

  Print "raw" instructions instead of Xgridfit glyph programs.

- \-x, --xgridfit

  Print XML declaration and \<xgridfit\> element, making a complete, valid Xgridfit program.

## SEE ALSO

[**xgridfit**(1)](/xgridfit/1.md), [**fontforge**(1)](/fontforge/1.md), [**python**(1)](/python/1.md)

## AUTHOR

**getinstrs** was written by Peter Baker \<psb6m@virginia.edu\>.

This manual page was written by Peter Baker
