SetFontStyle(style, ...) SetFontStyle(#SHADOW, color, distance, direction) (V2.5) SetFontStyle(#EDGE, color, size) (V2.5)
stylewhich must be one of the command-specific constants listed below.
style argument can be one of the following constants:
Starting with Hollywood 2.0, you can specify multiple font styles
in a single call by simply OR-ing them with another, e.g a call
SetFontStyle(#BOLD|#ITALIC) will set the font style to bold and
italic. Obviously, the style
#NORMAL is mutually exclusive and cannot
be combined with any other style. Also note, that styles requiring
additional arguments (i.e.
#EDGE) cannot be combined in
a single call because Hollywood would not know then to which style
the additional arguments belong.
Please note that TrueType fonts often have separate font faces for
their respective styles. In that case, you should always use these
specifically designed font faces because
SetFontStyle() will create bold
and italic styles using a custom algorithm that often does not look as
good as hand-crafted bold or italic font faces do. Thus, if you are
planning to use Arial in bold style, you should better use "Arial Bold"
when calling SetFont() (or OpenFont() / @FONT) than using "Arial" and
#BOLD set afterwards.
SetFontStyle(#BOLD|#ITALIC)The above code sets the font style to bold and italic.
SetFontStyle(#SHADOW, ARGB(128, $939393), 16, #SHDWSOUTHEAST)The above code enables a half-transparent grey shadow which will be positioned 16 pixels to the south-east of the main text.