Skip to content

FontWidth

Claude edited this page Oct 27, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

FontWidth

FontWidth:Int32

Returns: The width of a character in pixels.

Description

The width in pixels of one character of the current font, as set by SetFont. No character is wider than this value.

Differences

  • Real fonts have a different width for each character, so this is the width of the widest one; use StringWidth for a text. The built-in bitmap font used when a font is not found is as wide as it is high.

Related Commands

FontHeight, FreeFont, LoadFont, SetFont, StringWidth

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally