OutputDocument.SetTextTypeface

Prototypes

void SetTextTypeface( String sTypeface )

Parameters

String sTypeface
The desired typeface. If the requested typeface is not installed, the IMLPlus program will stop with an error.

Remarks

This method sets the typeface of subsequent textual output.

Example
declare OutputDocument doc = OutputDocument.GetDefault();

doc.SetTextTypeface( "Times New Roman" );
print "This is in Times New Roman.";

doc.SetTextTypeface( "Arial" );
print "This is in Arial.";

doc.SetTextTypeface( "Lucida Console" );
print "This is in Lucida Console.";

doc.SetTextDefaultFont();
print "This is in the default font.";
See Also

OutputDocument.SetTextFont