Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

tWidth()

Purpose

Get the text width of the display

Description

Find the number of characters that will fit on the screen horizontally at the current text size

Syntax

textwdith = tWidth( )

Arguments

textwdith The number of characters that will fit on the screen horizontally at the current fontsize

Example

textSize( 100 )
for y = 0 to tHeight() loop
    for x = 0 to tWidth() loop
        printAt( x, y, ( x + 1 ) % 10 )
        update()
    repeat
repeat
for i = 1 to 100 loop
  update()
repeat

Associated Commands

cursor(), drawText(), ink(), len(), print(), printAt(), stringHash(), textSize(), tHeight()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.