Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » printTextHeight

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

printTextHeight

set the printTextHeight to posInteger

The printTextHeight property returns or sets the value of the default text height (or line spacing) used by the print command. The default value is 13.

When you print a report, HyperCard determines the default text height for a report item as follows:

  • If the report item is the text of a card or background field, HyperCard uses the text height of the field.
  • If the report item is generated from any other HyperTalk expression, HyperCard uses the value of printTextHeight.

In either case, the user can override the default height by selecting a height in the Item Info dialog box of the report item.

Examples

set the printTextHeight to 20

Related Topics

Placeholders

posInteger

An expression that evaluates to a positive integer.

For example:

3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2

See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View