SETLABELFONT

Synopsis
SETLABELFONT font
Description

Sets the font to be used by the LABEL command.

The input is a list that completely describes a font. The available fonts depend on your computer. FMSLogo has two ways to specify the font you desire. This command can be used by Logo programs. For interactive use you can use Set - Label Font from the main menu. The easiest way to use fonts in FMSLogo is to set the desired font using the Menu and capturing the attributes using LABELFONT command.

The font input must be a list of the form: [[FaceName] Height Width Orientation Weight Italic Underline StrikeOut CharSet OutPrecision ClipPrecision Quality PitchAndFamily]. The meaning of each item within the list is explained by the following table:

ItemMeaning
FaceNameA word (or list of words) that is the font's typeface name
HeightAn integer that specifies the font's height, in logical units. If this value is greater than zero, it specifies the cell height of the font. If it is less than zero, it specifies the character height of the font.
WidthAn integer that specifies the font's width, in logical units
OrientationAn integer that specifies the font's orientation, in degrees
WeightAn integer that specifies the font's weight. This member ranges from 0 to 900 in increments 100. A value of 0 means use default weight.
ItalicAn integer. The font is italicized if and only if this is nonzero.
UnderlinedAn integer. The font is underlined if and only if this is nonzero.
StrikeOutAn integer. The font is rendered with a horizontal line through it if and only if this is nonzero.
CharSetAn integer that specifies the font's character set.
OutPrecisionAn integer that specifies the font's output precision.
QualityAn integer that specifies the font's quality. 0 implies the default quality (defined by the current operating system settings). 1 implies draft quality. 2 implies proof quality. 3 implies no anti-aliasing. 4 implies anti-aliasing.
PitchAndFamilyAn integer that specifies the font's pitch and family.

If you choose a font typeface that is not available on the system, then SETLABELFONT lists all fonts that are available.

If you want to flash a message by writing it in one color, then writing the same message in the background color, you should disable anti-aliasing by choosing a Quality of 3. Otherwise, you'll end up with a faint outline of the message you wanted to completely erase.

Example
SETLABELFONT [[Times New Roman] -24 0 0 400 0 0 0 0 3 2 1 18]
LABEL "Hello
See Also
FONTFACENAMES

SourceForge.net Logo