RWS_FONT
Example |
Purpose
Tags the contents of a string to be displayed in a specified font. The font tag attributes are specified in the aClass parameter.
Syntax
RWS_FONT(vString, aClass)
Parameters
vString A string variable containing the text to which the font tags should be applied. On return, the variable contains the modified string.
aClass A dynamic array that can contain the following elements:
Element No. |
Attribute |
Description |
---|---|---|
1 |
CLASS |
The name of a tag class defined in a stylesheet. |
2 |
SIZE |
Font size in the range 1 to 7. |
3 |
COLOR |
Font colour. See table below for details. |
4 |
STYLE |
CSS font style definition. |
Attributes defined in the aClass parameter are applied to the FONT tag.
For information about using aClass, see The aClass Parameter.
The COLOR element in the aClass parameter can be one of the following:
- A string containing a # character, followed by characters that specify a six-digit Hexadecimal number. These three pairs of Hex numbers specify the colour intensity for Red, Green, Blue (RGB) respectively (see below for examples).
The name of the required colour from a set of names that are understood by HTML. The sixteen basic colour names, and their associated hexadecimal values, are shown in the table below:
Colour
RGB
Colour
RGB
Black
"#000000"
Green
"#008000"
Silver
"#C0C0C0"
Lime
"#00FF00"
Gray
"#808080"
Olive
"#808000"
White
"#FFFFFF"
Yellow
"#FFFF00"
Maroon
"#800000"
Navy
"#000080"
Red
"#F00000"
Blue
"#0000FF"
Purple
"#800080"
Teal
"#008080"
Fuchsia
"#FF00FF"
Aqua
"#00FFFF"