---
name: "PS_setfont"
section: "3"
platform: "linux"
package: "pslib-dev"
version: "0.4.8-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PS_setfont"
---

# PS\_setfont(3)

Sets font to use for following output

## NAME

PS\_setfont — Sets font to use for following output

## SYNOPSIS

\#include \<pslib.h\>

void PS\_setfont(PSDoc \*psdoc, int fontid, float size)

## DESCRIPTION

Sets a font, which has to be loaded before with [PS\_findfont(3)](/PS_findfont/3.md).  Outputting text without setting a font before results in an error.

## SEE ALSO

[PS\_findfont(3)](/PS_findfont/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
