Home > PHP > Function > PS > ps_symbol()

ps_symbol()

ps_symbol - Output a glyph

Syntax

bool ps_symbol (resource $psdoc, int $ord)

Arguments

  • psdoc - Resource identifier of the postscript file as returned by ps_new().
  • ord - The position of the glyph in the font encoding vector.

Description

Output the glyph at position ord in the font encoding vector of the current font. The font encoding for a font can be set when loading the font with ps_findfont().

Version

PHP PECL ps >= 1.2.0

Return value

Returns TRUE on success or FALSE on failure.