---
name: "PS_symbol_width"
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_symbol_width"
---

# PS\_symbol\_width(3)

Get width of a glyph

## NAME

PS\_symbol\_width — Get width of a glyph

## SYNOPSIS

\#include \<pslib.h\>

float PS\_symbol\_width(PSDoc \*psdoc, unsigned char c, int fontid, float size)

## DESCRIPTION

Retrieves the width of a glyph which is at position  **c** in the font encoding vector. The font  encoding for a font can be set when loading the font with  **PS\_findfont()**.

**fontid** and **size** are  optional and can be set to zero. In such a case the current font and  size will be used.

## RETURN VALUE

The width of the symbol in points.

## SEE ALSO

[PS\_findfont(3)](/PS_findfont/3.md), [PS\_symbol(3)](/PS_symbol/3.md), [PS\_symbol\_name(3)](/PS_symbol_name/3.md)

## AUTHOR

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