Determine raster extent of text data.
Source position: agraphics.pas line 2399
function TextExtent( |
rp: pRastPort; |
const string_: pCHAR; |
count: LongInt; |
_textExtent: pTextExtent |
):SmallInt; |
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 |