Automatic use of bitmap fonts overriding system fonts

Skip to first unread message

John Bridges

Sep 3, 2013, 9:56:44 PM9/3/13
New build of AfterGRASP is up for download:
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>"

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
0 new messages