Procedure GetTextFont returns the font of the referenced text object at a specified position in the string.
The position is in a range between 0 and 32767, representing a character position in the text string. An index of 0 refers to the first character in the string.
FUNCTION GetTextFont(
objectHd : HANDLE;
Position : INTEGER): INTEGER;def vs.GetTextFont(objectHd, Position):
return INTEGER| Name | Type | Description |
|---|---|---|
| objectHd | HANDLE | Handle to text object. |
| Position | INTEGER | Position in text string. |
fontID:=GetTextFont(handleToText,2);fontID = vs.GetTextFont(handleToText,2)VS Functions: GetFontName | GetFontID
Availability: from MiniCAD6.0