Determine raster extent of text data.
Source position: agraphics.pas line 2093
function TextExtent( |
Rp: PRastPort; |
String1: PChar; |
Count: LongInt; |
TextExtent: PTextExtent |
):LongInt; |
Rp |
|
A pointer to the RastPort which describes where the text attributes reside. |
Count |
|
the number of characters in the string. If 0, there are no characters in the string. |
This function determines a more complete metric of the space that a text string would render into than the TextLength() function.
TextExtent_ is filled in as follows:
|
Determine raster length of text data. |
|
|
Write text characters (no formatting). |
|
|
Count characters that will fit in a given extent |