# .font command

The .font command selects the font defined
in the device item or specifies fonts that are not predefined in the
printer item. If the device does not support the fonts or the device
item has not been configured, this command has no affect.

**Synonyms:** .f

## Syntax

```
.font number
.font orientation, symbolset, spacing, pointsize, pitch, style, strokeweight, typeface
```

## Parameter(s)

| number | Selects the corresponding font number defined in the device item. |
| --- | --- |
| orientation | Can be either portrait or landscape. |
| symbolset | Can be either ASCII, legal, roman8, or linedraw. |
| spacing | Can be either proportional or fixed. |
| pointsize | Specifies the point size. |
| pitch | Specifies the pitch. |
| style | Can be either upright, italic, or reverse. |
| strokeweight | Can be light, lightmedium, mediumlight, medium, mediumbold, boldmedium, or bold. |
| typeface | Can be any of the valid types defined in the corresponding item in the devices file for the printer being used. |

## Example(s)

```
.font portrait,legal,fixed,10,12,upright,medium,courier
```

## See also

- [.reset command](https://d3codex.com/output-processor/dot-reset-command/)
- [devices file](https://d3codex.com/systemfiles/devices-file/)
- [download command](https://d3codex.com/tcl/download-command/)
- [Output processor overview](https://d3codex.com/output-processor/output-processor-overview/)
- [pitch-compile command](https://d3codex.com/tcl/pitch-compile-command/)
- [setup-printer command](https://d3codex.com/tcl/setup-printer-command/)

---
Source: https://d3codex.com/output-processor/dot-font-command/ - part of the D3Codex reference.
