Font

Description:              This function returns a font value.

Returns:                    Font

Usage:                       Steady State

Format:                      Font(Name, CharSet, Height, Rotation, Weight, Italic, Fixed)

Parameters:             Name    { text }  { required }  { no default: }

                                      Any text expression that gives the name of the font. This must be the same as the Microsoft Windows™ name for the font; for example, "ARIAL".

                                    CharSet    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the character set for this font.

                             If you are uncertain as to a valid value, set CharSet to 0.

                                    Height    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the height of the font in points.

                                    Rotation    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the rotation of each character in degrees.

                                    Weight    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the weight of the font. Larger numbers give a more bold appearance. The range is 0 to 9.

                                    Italic    { Boolean }  { required }  { no default: }

                                      Any logical expression. If true (non-0), the italicized version of the font is used. If false (0), the normal version is used.

                                    Fixed    { Boolean }  { required }  { no default: }

                                      Any logical expression. If true (non-0), all of the characters used by the font will be the same width and height, that of the largest character. If false (0), and the font is a proportional or a true type font they may have different sized characters.

Comments:               This function is for use in layered graphics statements that display text. A good idea is to use variables for font parameters in the layered graphics statements. If it is desired to change the font later, it need only be changed at one place - where the assignment is made to the variable. This also promotes a consistent use of fonts.

                             There are two types of fonts - raster and true type. Raster is much faster than true type, but cannot be rotated and can only be scaled in integral multiples of the sizes provided by the font. True type fonts can be rotated and continuously scaled. Raster fonts are better suited to tables and lists, where rotation is usually not required, while true type fonts are more appropriate for graphics, so that a richer variety of styles and sizes are available with full rotation capabilities.

Example:

inputFont = Font("ARIAL" { Font name },

                 0 { Character set }, 

                 14 { Height in points }, 

                 0 { Rotation }, 

                 5 { Weight - somewhat bold }, 

                 0 { Not italic }, 

                 0 { Non-fixed }); 

See Also:

FontDialog | GUIText | ZText