1. Font and Text

Commands for typography, font handling, and text rendering in PostScript.

2. Overview

PostScript provides comprehensive font and text capabilities including font selection, scaling, transformation, and sophisticated text rendering with kerning and character-level control.

3. Command Categories

3.1. Font Selection

Command Description

findfont

Obtain font dictionary by name

scalefont

Scale font uniformly

makefont

Transform font by matrix

setfont

Establish current font

currentfont

Get current font

definefont

Register font

undefinefont

Remove font (Level 2)

3.2. Text Rendering

Command Description

show

Paint text string

ashow

Show with spacing adjustment

widthshow

Show with selective width adjustment

awidthshow

Combined spacing adjustment

kshow

Show with kerning

cshow

Show with per-character control (Level 2)

xyshow

Show with explicit x/y displacements (Level 2)

3.3. Text Measurement

Command Description

stringwidth

Calculate text width

charpath

Get character outlines