Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 971 Bytes

File metadata and controls

50 lines (39 loc) · 971 Bytes

SetTextFont

Description

Procedure SetTextFont sets the font of a substring in the referenced text object.

PROCEDURE SetTextFont(
				objectHd : HANDLE;
				Start    : INTEGER;
				Count    : INTEGER;
				FontNum  : INTEGER);
def vs.SetTextFont(objectHd, Start, Count, FontNum):
    return None

Parameters

Name Type Description
objectHd HANDLE Handle to text object.
Start INTEGER Start position in text string.
Count INTEGER Length of substring.
FontNum INTEGER Font ID for substring.

Remarks

Note that "Start" is zero-based.

Examples

VectorScript

SetTextFont(handleToText,0,5,GetFontID('Helvetica'));

{sets the first five characters of the referenced text string to Helvetica}

Python

See Also

VS Functions: GetFontID

Version

Availability: from MiniCAD6.0

Category