FONT Property


PLBCMP GUI Only

square.png Objects

 

The FONT property identifies the object's text font. The property uses the following format:

 

FONT={value | font object}

Note the following:

  1. FONT may be used in CREATE, SETPROP, or GETPROP statements.

  2. The {font object} must have been previously created.

  3. For {value} the logical string of the character variable or character literal describes the font. This string must contain the font name and may contain font style information. The string is formatted as follows:

  4.  

    "{font-name}({style}, ...)" Example: ">Arial(10,BOLD)"

    or

    "'{font-name}'({style}, ...)"

    Example: "'>MS Sans Serif'(8)"

    Where:

    {font-name}

is one of SYSTEM, FIXED, HELVETICA, TIMES. These are the default fonts supported. If additional fonts are available, they may be accessed using one of the following strings:

 

Generate/bullet1.gif    >font-name - a Windows installed font is accessed by placing a '>' character before the font name.

Generate/bullet1.gif    >font-file.font-name - a font may be used from a font resource file by placing a '>' character before the font file name and placing the font file member name following a '.' character.

Generate/bullet1.gif    If {font-name} contains blanks, the {font-name} should be enclosed by single quote characters, i.e. '{font-name}'.

 

{style}
contains both the point size and the optional rendition. The point size may be from 8 to 72. The rendition is separated from the size by a comma and may be BOLD or B, ITALIC or I, U for underlined, S for strikethrough, or Axxx for angled where xxx is the degrees. More than one style specification may be given.

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions



PL/B Language Reference FLOATMENU Property FORMAT Property