Text Asset

    Description

    There are two Text Asset options:

    The main differentiator concerns formatting and binding:

    • Use Simple Text if you need to perform binding for each formatting option. Formatting, regardless of how it is set, impacts the entire text entry.
    • Use Rich Text if you need to perform binding for HTML-formatted content. Formatting, regardless of how it is set, can be applied to text fragments, not just to the entire text entry. Only a subset

    If you don't need to present HTML formatted content or if you don't know which Text Asset you should use, always start using the Simple Text. It will be lighter and easier to maintain in your experience.

    Important note concerning fonts

    1. Composer and Player can only work with TrueType fonts (.ttf).
    2. PostScript fonts are not supported, but you can convert them using this online tool
    3. The list of fonts available for the Font property corresponds to the fonts installed on the PC hosting IntuiFace Composer. Make sure all of the fonts used in your project are also installed on each target computer running IntuiFace Player. If not, you will have to install them manually. On Windows PCs, installed fonts are located in C:/Windows/Fonts.

    Scrolling Text

    To create scrollable text - i.e. to display a subset of the overall text and enable a user to scroll through the remaining text - use the Scroll Collection.

    For a quick step by step look, see this article.

    Properties, Triggers & Actions

    Properties for Simple Text

    See our list of common properties for details about properties shared by all asset types.

    The Simple Text asset is used to share textual information with your audience. It provides a variety of formatting options that can be freely used with binding.

    Simple_Text_Properties.jpg

    Text

    • Text: (located in the More Properties panel) contains the text you want to display.
    • Font size: sets size of text
    • Font color: sets color of text
    • Font: sets the font of text
    • Bold: toggles whether text is displayed in bold
    • Italic: toggles whether text is displayed in italics
    • Underline: toggles whether text is underlined
    • Line Wrap: toggles whether to respect the right-end of the container and continue text on the next line
    • Horizontal / Vertical Alignment: sets positioning of text within the Simple Text container

    TransparentPixel.png

    Properties for Rich Text

    See our list of common properties for details about properties shared by all asset types.

    The Rich Text asset provides richer formatting possibilities than the Simple Text asset, including a variety of additional alignment options (alignment, bullets, spacing, super/subscript), the ability to vary formatting in the same text block and support for the HTML formatting syntax:

    richeText3.PNG

    Text content can be modified directly in a scene simply by clicking anywhere within its container. This activates the cursor, enabling the addition of new text, the deletion of existing text and use of the mouse to highlight text targeted for formatting.

    NOTE: Because the Rich Text asset accepts HTML-encoded text, most formatting properties are not available for binding. Only the text itself is available for/modifiable by binding.

    Rich_Text_Properties.jpg

    Text

    • HTML Text: contains the text you want to display. This field accepts well-formatted HTML, enabling you to combine text with formatting. The following HTML tags are accepted; all other tags are ignored.
      • <b> bold
      • <i> italic
      • <span> for defining text color and size
      • <p> for paragraphs
      • <div>
      • <table> <tr> and <td> for defining tables
      • <br> line break
      • <li> <ul> and <ol> for lists

    The following properties are available in the Properties panel for the Rich Text asset.

    • Font color: sets color of selected text
    • Font size: sets size of selected text
    • Font: sets the font of selected text
    • Bold: toggles whether selected text is displayed in bold
    • Italic: toggles whether selected text is displayed in italics
    • Underline: toggles whether selected text is underlined
    • Alignment: sets positioning of selected text to Left Aligned, Right Aligned, Centered or Justifed
    • Bullet: toggles whether selected text should appear in a bulleted list
    • Numbering: toggles whether selected text should appear in a numbered list
    • Increase Indent: increases paragraph indentation
    • Decrease Indent: decreases paragraph indentation
    • Subscript: toggles whether selected text will be written as subscript
    • Superscript: toggles whether selected text will be written as superscript

    TransparentPixel.png

    Triggers

    See Triggers Overview to get details of common triggers shared by all assets or collections

    There are no triggers unique to the Simple Text asset or to the Rich Text asset.

    Actions

    See Actions Overview to get details of common actions shared by all assets or collections

    The following actions are unique to the Simple Text and Rich Text asset.

    Note that other than the Set Text action, all other actions for the Rich Text asset affect the entire text entry and cannot be used to modify text fragments.

    • Set text: this action changes the currently displayed text
    • Set font: this action sets the font of all parts of the text
    • Set font color: this action sets the font color of all parts of the text
    • Set font size : this action sets the font size of all parts of the text
    • Set font style: this action sets the font style of all parts of the text

    Triggers-Simple_Text.jpg