DelFont Command

Purpose

Deletes a logical font.

Syntax

DelFont hFont

hFont: Handle

Description

DelFont frees all system resources associated with the object. After the object is deleted, the specified handle is no longer valid. DelFont invokes DeleteObject API.

Example

Local fnt%

AutoRedraw = True

_Font$ = "Arial"

Font To fnt

SetFont fnt

Print "Hello World"

DelFont fnt

Do // to end press Alt + F4

Sleep

Until Me Is Nothing

Remarks

DelFont is synonym to FreeFont.

See Also

Font, Font To, SetFont, GetFont, RFont, Dlg Font, _hFont, _font$, _font$=, FreeFont, DelFont

{Created by Sjouke Hamstra; Last updated: 30/09/2014 by James Gaite}