EasyLanguage Object Reference
The Font class is used to change the font of other objects that display text.
When creating a font object, you specify the font family name, font size, and optional font style parameters. Different styles may be combined when creating a font using the bitwise OR operator. For example, use the code below to create a bold and italicized 10 point Arial font and assign it to the Font property of a TextLabel drawing object and a Label control in a form.
myFont = Font.Create("Arial", 10, FontStyle.Bold OR FontStle.Italic); myTextLabel.Font = myFont; myLabel.Font = myFont;
It is important to note that Font class properties are read-only and are used to access previously set font parameters. The parameters are set, as shown above, using the Font.Create method.
Namespace: elsystem.drawing