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| 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. |
Note that "Start" is zero-based.
SetTextFont(handleToText,0,5,GetFontID('Helvetica'));
{sets the first five characters of the referenced text string to Helvetica}VS Functions: GetFontID
Availability: from MiniCAD6.0