ps_stringwidth(3) php man page | unix.com

Man Page: ps_stringwidth

Operating Environment: php

Section: 3

PS_STRINGWIDTH(3)							 1							 PS_STRINGWIDTH(3)

ps_stringwidth - Gets width of a string

SYNOPSIS
float ps_stringwidth (resource $psdoc, string $text, [int $fontid], [float $size = 0.0])
DESCRIPTION
Calculates the width of a string in points if it was output in the given font and font size. This function needs an Adobe font metrics file to calculate the precise width. If kerning is turned on, it will be taken into account.
PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $text - The text for which the width is to be calculated. o $fontid - The identifier of the font to be used. If not font is specified the current font will be used. o $size - The size of the font. If no size is specified the current size is used.
RETURN VALUES
Width of a string in points.
SEE ALSO
ps_string_geometry(3). PHP Documentation Group PS_STRINGWIDTH(3)
Related Man Pages
pbmtextps(1) - minix
ps_get_parameter(3) - php
imagefontwidth(3) - php
ps_string_geometry(3) - php
pbmtextps(1) - php
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun