Sets the font to be used for creating text. Used with the Text method.
Syntax
HTML <PARAM NAME="Line0001" VALUE="SetFont( name, height, weight, isItalic, isUnderline, isStrikethrough )"> Scripting SGObj.SetFont( name, height, weight, isItalic, isUnderline, isStrikethrough ) File SetFont( name, height, weight, isItalic, isUnderline, isStrikethrough )
Parameters
- name
- New font name.
- height
- Size of the font, in points. If font height is set as negative value, font will be drawn upside down and backward.
- weight
- Weight of the font. An integer in the range 0700, where a value of 300 is normal weight, and a value of 700 is heavy bold.
- isItalic, isUnderline, isStrikethrough
- Values specifying whether the font is italic, underlined, or strikethrough. If True, the font has the corresponding attribute; if False, the font does not.
Example
The following example sets the font attributes to be 80-point Verdana in a medium-heavy bold, with no italic, underlined, or strikethrough characteristics.
<PARAM NAME="Line0004" VALUE="SetFont('Verdana',80,650,0,0,0)">
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.