Automatic use of bitmap fonts overriding system fonts

5 views
Skip to first unread message

John Bridges

unread,
Sep 3, 2013, 9:56:44 PM9/3/13
to after...@googlegroups.com
New build of AfterGRASP is up for download:
 
 
agsetup_20130903.exe
 
----------------------------------------------------------------------------
Tue, 03 Sep 2013

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.

----------------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages