Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » printTextStyle

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

printTextStyle

set the printTextStyle to textStyleList

The printTextStyle property returns or sets the value of the default text style used by the print command when you print an expression. The default value is plain.

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

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

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

Examples

set the printTextStyle to "bold"
set the printTextStyle to "bold,italic"

Related Topics

Placeholders

textStyleList

One of the following (or a comma-delimited list thereof):

bold
condense
extend
group
italic
outline
plain
shadow
underline

In AppleScript, the comma-delimited list must be enclosed in brackets.

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View