Specify font style and variable attributes

$style stylecodes

Commands in these files are normally generated and maintained by FFVIEWER, and for most Graphical Customization applications it is not necessary to view or edit the GCT/GPT file.

This command is used to specify a text font style to be used for text which follows in the GCT file, and also to specify attributes of the annotation.

The parameter on this command is used as follows:

stylecodes one or more of the following letters/digits (case is ignored)
A auto-adjust width of boxed, reversed or non-transparent text
B use bold face font style
C center the text horizontally in the specified rectangle (ignored for V8 HTML, use <p align="center">)
Dright-justify the text in the specified rectangle (ignored for V8 HTML, use <p align="right">)
GForce the annotation text to be treated as a BMP graphic filename
HExpand a subset of HTML syntax (see below)
I use italic face font style
K 'Krunch' multi-line text so that embedded blank lines are omitted
M Multiple-line text
N No attributes (used to reset attributes)
R Reverse text (white on black)
T Use a transparent background when applying the annotation
U Use underlined text
WWrap at character (break too-long words at end of line)
X Draw a box on the surrounding rectangle specified by $position
(digits)The numeric code defined by Windows for the character set, if other than the default character set. Obsolete, ignored.

Note that automatic width adjustment is done after macro expansion, but only for single lines of text, which is boxed, reversed, or opaque.

The attributes for boxed text, reversed text, or opaque background are not supported (and are ignored) for text at an angle specified by $angle.

Wrap at character is only applied in multi-line, non-HTML annotations, and is also ignored when a whole ASCII file is rendered into the annotation.  This feature is intended to replicate the appearance of text in a multi-line edit control. However Windows rendering onto the TIF may sometimes cause a difference in the break point from the that of the text in an FFVIEWER annotation.

Default: normal style text, no box, left justified, opaque, black on white, default character set.


$style BIX   ; bold-italic, boxed


HTML Expansion

The supported HTML has changed between version 7 and version 8.  In CopiaFacts version 7, only the B, I, U, BR, AL and IND tags were supported, and with slightly different syntax.  To retain the formatting of version 7, set a configuration file variable of V7HTML to a non-empty value.

Version 7 HTML SyntaxVersion 7 Supported HTML Syntax

The current supported HTML subset is as shown in the following examples:

<b>bold</b> text

bold text

<i>italic</i> text

italic text

<u>underlined</u> text

underlined text



line<hr>break with horizontal line

break with horizontal line

<ind x="50">indented text (x=pixels)

indented text (x=pixels)

<p align="right">text<P>

text is aligned right (the Right annotation property is ignored)

<p align="center">text<P>

text is centered (the Center annotation property is ignored)

plain <font face="Courier New" size="14">text</font>

plain text

white <font color="clWhite" bgcolor="clBlack">on black</font>

white on black
(clWhite and clBlack are the only supported color names)

<img src="file://\\node\copia\temp\logo.bmp" align="top">

(The file must be a monochrome bitmap.  The source specifier must start file://)

<ul><li> one<li> 2<li> three</ul>




The HTML syntax is minimally validated and it is recommended that you carefully test annotations coded in HTML. Syntax other than that listed above may have unpredictable results. In addition to the above syntax, the following conversions are done:

&nbsp;(non-breaking space)

HTML syntax is not supported for text at an angle.

Pairs of single-quotes can also be used where the syntax above shows " inside < > and double-quotes will be saved in GCT and GTT files as single quotes.

For an example of the use of various HTML syntax elements, see the FFVIEWER topic concerning Signatures and Graphics.