[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
%A
) Graphics-Mode Text Attributes sets all of the attributes--cursor, font, size, color, and justification--to control the display of text in the graphics modes.
The Graphics-Mode Text Display command is then used to display text with the specified attributes.
This command also allows the selection of a font. Currently, Cogsys only loads three fonts: the default VGA ROM font, and two Windows fonts: Arial 20 point and BrHand 24 point. This limitation will very likely be removed in future versions of Cogsys (4.2 New Directions).
The font table is initialized like this:
0
1
2
n
20
The default font path is is stored in the Cogsys constant
DEFAULT_FONT_PATH
, and is currently set to
`'. It can be controlled by the %M
command when the video mode is set. See section Mode (%M
).
The default values for the attributes are given below:
%A
%A[
[Xx
| Yy
| Jjust
| Ffont
| Sscale
| Ccolor
] [, ...
] ]
Once set, an attribute is not changed until another %A
command. Attributes
retain their values through mode resets.
%A
was part of #G
. Very old teslists
written for Cogsys 2.7 must be re-written to use %A
.
Cogsys 2.8 to 2.9 had a `W' option to %A
which allowed the
specification of a width string. The width string was an arbitrary string
of characters whose length was taken to be the maximum width within
which all subsequent text would be centered. This weird option has been
replaced with the justification attribute.
Before Cogsys 3, a $F
command was used to load text mode fonts.
Text mode fonts never worked well and their support was removed from Cogsys 3.
The other commands that used text mode fonts ($D
, $U
and $E
) have
been removed as well.
In addition to text mode fonts, older versions of Cogsys used two completely different graphics mode fonts: the standard set of BGI fonts for VGA modes, and translated GEM fonts for 256 color modes. Even though Cogsys 2.8 through 2.9 had disabled the use of BGI fonts completely, the fonts were still distributed with every installation of Cogsys.
Cogsys 3 no longer depends on BGI, and instead uses the BGI Toolkit from Ryle Design and uses the GEM fonts exclusively. Any reference to BGI fonts ("Sans Serif", "Triplex", etc) or `*.BGI' font files is obsolete.
%M2%A[X320,Y240,J2,S1,F1,C10]#G[Hi, there!]
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |