Specify font style and variable attributes
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">)|
|D||right-justify the text in the specified rectangle (ignored for V8 HTML, use <p align="right">)|
|G||Force the annotation text to be treated as a BMP graphic filename|
|H||Expand 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|
|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|
|W||Wrap 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
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.
Note that alignment must immediately follow a line break. Alignment is set automatically if the Center or Right annotation property is set.
The current supported HTML subset is as shown in the following examples:
line<hr>break with horizontal line
break with horizontal line
<ind x="50">indented text (x=pixels)
indented text (x=pixels)
text is aligned right (the Right annotation property is ignored)
text is centered (the Center annotation property is ignored)
plain <font face="Courier New" size="14">text</font>
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:
| ||(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.