Determine raster extent of text data.
Source position: agraphics.pas line 2155
procedure TextExtent( |
Rp: PRastPort; |
const String_: PChar; |
Count: LongWord; |
TextExtent_: PTextExtent |
); |
Rp |
|
A pointer to the RastPort which describes where the text attributes reside. |
String_ |
|
The address of the string to determine the length of. |
Count |
|
the number of characters in the string. If 0, there are no characters in the string. |
TextExtent_ |
|
A structure to hold the result. |
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 |