Home > Language Reference > Classes > Display
DrawFont Property
Font used to draw the text.
Syntax
Public Property Get DrawFont() As HbFont
Public Property Let DrawFont(ByVal eFont As HbFont)
| Parameter | Description |
| eFont | New font. |
Remarks
The DrawFont property specifies the font used by the TextOut method to draw the text. The eFont parameter should be one of the Font Constants possibly combined with one of the following constants:
| Constant | Value | Description |
| hbFontUnderlineNone | &H0000 | The text is not underlined. |
| hbFontUnderlineDotted | &H0100 | The text is underlined with a dotted line. |
| hbFontUnderlineSolid | &H0200 | The text is underlined with a solid line. |
The hbFontUnderlineSolid is only supported in Palm OS® 3.5 and higher. On earlier versions, this constant causes the same effect as the hbFontUnderlineDotted constant.
Note: this property has no effect on the caption of the controls. To modify the font used by controls, you should use the Font property, when available.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |