Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 961 Bytes

File metadata and controls

44 lines (35 loc) · 961 Bytes

GetTextFont

Description

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

Parameters

Name Type Description
objectHd HANDLE Handle to text object.
Position INTEGER Position in text string.

Examples

VectorScript

fontID:=GetTextFont(handleToText,2);

Python

fontID = vs.GetTextFont(handleToText,2)

See Also

VS Functions: GetFontName | GetFontID

Version

Availability: from MiniCAD6.0

Category