Determine raster extent of text data.
Source position: agraphics.pas line 2408
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. |
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 |