# Font

This class represents a font used for drawing or displaying text in controls.

This class is creatable.

`DIM hFont AS Font hFont = NEW Font ( [ Font AS String ] )`

Creates a new font object from a font description.

This class acts like a read-only array.

`DIM hFont AS Font hFont = Font [ Font AS String ]`

Creates a new font object from a font description and returns it.

Properties |  | Methods |
--- | --- | --- | ---
Ascent Bold Descent Fixed Italic Name Resolution Size StrikeOut Styles Underline |  | Height ToString Width |

Example:

You need a form and a textarea to get the example going

    PUBLIC SUB Form_Open()
     Form1.Font.Name = "Utopia"
     Form1.Font.Bold = TRUE
     Form1.Font.Italic = TRUE
     Form1.Font.Size = "24"
     Form1.Font.StrikeOut = FALSE
     Form1.Font.Underline = TRUE
    END