Skip to content

SetTextAreaFont

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

SetTextAreaFont

SetTextAreaFont:Void textarea:Int32, font:Int32
Parameter Mode Type Default Description
textarea In Int32 required Handle of a text area.
font In Int32 required Font handle from LoadFont or RequestFont.

Description

Changes the font of the whole text area.

Differences

  • Only the size of the font is used, every font is drawn with the built-in typeface.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Font", 10, 10, 300, 150, Desktop(), 3)
area = CreateTextArea(10, 10, 270, 90, win)
SetTextAreaFont area, LoadFont("Courier New", 16)
SetGadgetText area, "Courier"
Repeat
Until WaitEvent() = $803

Related Commands

AddTextAreaText, CreateTextArea, FormatTextAreaText, LockTextArea, SetTextAreaColor, SetTextAreaTabs, SetTextAreaText, TextAreaChar

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally