PS_string_geometry(3)

PS_string_geometry3

Gets geometry of a string

Usage

#include <pslib.h>

float PS_string_geometry(PSDoc *psdoc, const char *text, int len, int fontid, float size, float *dimension)

Overview

This function is identical to PS_stringwidth2(3) but has an extra parameter dimension which, if not NULL, will be used to return further dimensions of the string.

dimension[0] contains the width as returned by the function. dimension[1] contains the maximum descender and dimension[2] the maximum ascender of the string.

Return value

Width of a string in points.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9–13

Author

This manual page was written by Uwe Steinmann [email protected].

From pslib-dev 0.4.8-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.