1998- 2001
Spencer Kimball & Peter Mattis
Get extents of the bounding box for the specified text.
This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well. Parameter size-type is not used and is currently ignored. If you need to display a font in points, divide the size in points by 72.0 and multiply it by the vertical resolution of the image you are taking into account.
unknown
Type | Name | Description |
---|---|---|
PF_VALUE | text | The text to generate (in UTF-8 encoding) |
PF_FLOAT | size | The size of text in either pixels or points (size >= 0) |
PF_INT | size-type | The units of specified size { PIXELS (0), POINTS (1) } |
PF_VALUE | fontname | The name of the font |
Type | Name | Description |
---|---|---|
PF_INT | width | The width of the specified font |
PF_INT | height | The height of the specified font |
PF_INT | ascent | The ascent of the specified font |
PF_INT | descent | The descent of the specified font |