---
name: "PS_show2"
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_show2"
---

# PS\_show2(3)

Output text with given length

## NAME

PS\_show2 — Output text with given length

## SYNOPSIS

\#include \<pslib.h\>

void PS\_show2(PSDoc \*psdoc, char \*text, int xlen)

## DESCRIPTION

Output a text at the current text position. No more than  **xlen** chars will be shown. The function will issue  an error if no font was set before with [PS\_setfont(3)](/PS_setfont/3.md).

PS\_show2() evaluates the following parameters and values  as set by [PS\_set\_parameter(3)](/PS_set_parameter/3.md) and [PS\_set\_value(3)](/PS_set_value/3.md).

- textx

  The x coordinate for text output.

- texty

  The y coordinate for text output.

- charspacing (value)

  Distance between two consecutive glyphs. If this value is  unequal to zero then all ligatures will be resolved. Values less  than zero are allowed.

- kerning (parameter)

  Setting this parameter to \`false' will turn off kerning.  Kerning is turned on by default.

- ligatures (parameter)

  Setting this parameter to \`false' will turn off the use  of ligatures.  Ligatures are turned on by default.

- underline (parameter)

  Setting this parameter to \`true' will turn on underlining.  Underlining is turned off by default.

- overline (parameter)

  Setting this parameter to \`true' will turn on overlining.  Overlining is turned off by default.

- strikeout (parameter)

  Setting this parameter to \`true' will turn on striking out.  Striking out is turned off by default.

## SEE ALSO

[PS\_show(3)](/PS_show/3.md), [PS\_continue\_text2(3)](/PS_continue_text2/3.md), [PS\_setfont(3)](/PS_setfont/3.md)

## AUTHOR

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