Font Class (Typed) |
Namespace: XSharp.VO.SDK
The Font type exposes the following members.
Name | Description | |
---|---|---|
Bold |
A logical value determining whether a font is displayed in a bold typeface (TRUE if yes; otherwise, FALSE).
| |
Family | ||
Italic |
A logical value determining whether a font is displayed in a italic typeface (TRUE if yes; otherwise, FALSE).
| |
Light |
A logical value determining whether a font is displayed in a light typeface (TRUE if yes; otherwise, FALSE). Light is the opposite of bold.
| |
Normal |
A logical value determining whether a font is displayed in a normal typeface (TRUE if yes; otherwise, FALSE).
| |
PitchFixed |
A logical value determining whether a font is displayed in a fixed pitch typeface (TRUE if yes; otherwise, FALSE).
| |
PitchVariable |
A logical value determining whether a font is displayed in a variable pitch typeface (TRUE if yes; otherwise, FALSE).
| |
Strikethru |
A logical value determining whether a font is displayed in a strikethrough typeface (TRUE if yes; otherwise, FALSE). A strikethough typeface places a line through every character.
| |
Underline |
A logical value determining whether a font is displayed in an underline typeface (TRUE if yes; otherwise, FALSE).
| |
Weight | ||
Width |
Name | Description | |
---|---|---|
ConvertFont | ||
ConvPntToDim |
Convert a specified point size for the font into a Dimension object.
| |
Destroy |
Provide a method to de-instantiate a Font object.
(Overrides Destroy.) | |
GetStdFontScreenHeight | ||
Handle |
Return the handle for a font.
|
Name | Description | |
---|---|---|
(Font to Font) |
Implicit operator to convert System.Drawing.Font to VO Font
| |
(Font to Font) |
Implicit operator to convert VO Font to System.Drawing.Font
|
Tip |
---|
Deselecting a Font: In Windows, the current font should be deselected before destroying the window. To do this, use Window:Font to assign the previous font, for example. However, this is only necessary if there is a font other than the default one currently selected. Font Pitch: A font's pitch can be either variable or fixed. In variable pitch fonts, characters are proportionally spaced (for example, a variable pitch font uses more space to print an "M" than an "i"). In fixed pitch fonts, the same amount of space is used by each character, regardless of the character width. Fixed pitch fonts are most commonly used by terminals and typewriters or to display program text. Variable pitched fonts are not always supported. This is dependent on the individual font. |
1... 2oMyFont := Font{FONTROMAN10} 3oMyFont:Italic := TRUE 4oOldFont := oMyWindow:Font 5oMyWindow:Font := oMyFont 6oMyWindow:TextPrint("Italic text",Point{10,10}) 7oMyWindow:Font := oOldFont