Sets basic properties of a font used in the frame
Signature:
isValid
=
SimpleHTML:SetFont(["element",]
"filename",
fontHeight,
"flags")
Arguments:
element
- Name of an HTML element for which to set font properties (e.g.p
,h1
); if omitted, sets properties for the frame's default font (string
)filename
- Path to a font file (string
)fontHeight
- Height (point size) of the font to be displayed (in pixels) (number
)flags
- Additional properties for the font specified by one or more (separated by commas) of the following tokens: (string
)MONOCHROME
- Font is rendered without antialiasingOUTLINE
- Font is displayed with a black outlineTHICKOUTLINE
- Font is displayed with a thick black outline
Returns:
isValid
-1
iffilename
refers to a valid font file; otherwisenil
(1nil
)