! Premier Font Control Dynamic Text Items.  (c) Circle Software, May 1989

! The following string functions may be included within any text to control
!   the display and printing of special fonts.

! These definitions make use of the printer codes defined elsewhere, for
!   example see CmdFiles.EpsonFX file.

! Example of use:  ^FB^This is bold text, ^FU^this is also underlined.^FU^^FB^

! See the reference manual for further details.


macro "FU"                          ! Toggle underline.
{
    font = underline

    if ( fontunderline )
        send PFU1                   ! Underline on.
    else
        send PFU0                   ! Underline off.
}


macro "FB"                          ! Toggle bold.
{
    font = bold

    if ( fontbold )
        send PFB1                   ! Bold on.
    else
        send PFB0                   ! Bold off.
}


macro "FI"                          ! Toggle italic
{
    font = italic

    if ( fontitalic )
        send PFI1                   ! Italic on.
    else
        send PFI0                   ! Italic off.
}


macro "FSB"                         ! Toggle sub-script
{
    font = subscript

    if ( fontsubscript )
        send PFSB1                  ! Subscript on.
    else
        send PFSB0                  ! Subscript or Superscript off.
}


macro "FSP"                         ! Toggle sub-script
{
    font = superscript

    if ( fontsuperscript )
        send PFSP1                  ! Superscript on.
    else
        send PFSP0                  ! Subscript or Superscript off.
}

macro "CR"  { colour red }
macro "CB"  { colour blue }
macro "CBk" { colour black }
macro "CG"  { colour green }
macro "CO"  { colour orange }
macro "CW"  { colour 0 }
macro "CGy" { colour grey }
macro "CY"  { colour yellow }


