SetFontProperties(var,"font","weight","angle","underline");
var
A variable that defines a font. You specify the attributes that is to be changed, and leave the other attributes empty ("").If no variable is available, you can use a dummy variable. The dummy variable does not have to have a value. For this variable, you must specify all attributes.font
Note: The font name must not include any information about the style of the font, such as weight, angle or underline.weight
angle
underline
Specifies a font. For example, when using a variable alias for font formatting, you use this scripting function to assign a font to the font variable.When the script is executed, the specified font (*.ttf) must be available on the system on which the StreamServer is running. To make the font available, you can either create a text with the specified font in PageOUT and export your Project, or you can manually copy the file to the <Export directory>\data\fonts directory.$font=SetFontProperties($dummy,"Arial","False","False","False");
// Sets $font to Arial, regular weight and angle, not underlined.
if ($country="ENG")
$fontENG=SetFontProperties($font,"","True","True","");
// Changes the weight and angle of $font.
if ($country="SWE")
$fontSWE=SetFontProperties($font "","","","True");
// Underlines $font.
OpenText StreamServe 5.6 | Updated: 2013-03-01 |