Blitz3D+ Command Reference

SetTextAreaFont textarea,font

Parameters

textarea - text area gadget

font - font handle from LoadFont or RequestFont

Description

Sets the font used by a text area.

Requires Extended language mode.

The whole area switches to the new face and size - the natural upgrade for a script editor or log pane is a fixed-width font:

SetTextAreaFont codeArea,LoadFont("Consolas",11)

This is the text-area spelling of SetGadgetFont and follows the same rule: the font must be a system font from LoadFont or RequestFont. Font sheets from LoadFontSheet belong to 2D Text drawing and stop with a runtime error here.

See also: SetGadgetFont, GadgetFont, RequestFont, SetTextAreaColor, LoadFont.

Index