Use of scalefont for html text now supported with special fontoverride
variables. Before a font is created, a search is done for a variable
with the prefix "fontoverride_" followed by the font face name.
If found, then it contains the variable name of the For example:
drawclear white
local face "Avant Garde"
local varface strvarname(@face)
set texthtml on
fontstyle init render
fontdefine "fontoverride_"$@varface @face 72pt
fontstyle init render bold
fontdefine "fontoverrideb_"$@varface @face 72pt
text "<html>Hi <font face='"$@face$"' size=16>Hello <b>there</b></font>"
waitkey
For font attributes, then a suffix is created on the fontoverride name
fontoverrideb_courier would be used for bold courier
fontoverridebi_courier would be used for bold italic courier
suffixes are:
b for bold
i for italic
u for underline
s for strikeout
sub for subscript
sup for superscript
----------------------------------------------------------------------------
Tue, 27 Aug 2013
FILEGETARRAY and FILEGETARRAYNAMED now support comment lines, they must
begin with a ';' character.
----------------------------------------------------------------------------