List of chapters

In addition to the text-specific behavior, there are standard behaviors defined for the “Text” object:

Text properties in the inspector

The following blocks are defined for the text. For all blocks “set” there are paired blocks “get” defined. You can change the panel image only in the inspector. You can change the alignment and text indentation only in the logic editor

Blockly

Configuring the text panel

  1. Set render order - the parameter that determines which panel will be rendered in turn relative to the other objects. Specify 1 to display the panel ahead of the other objects in the scene
  2. Set Panel Color - the parameter that sets the color of the text panel. To set the color, click on the color in the block and specify the color either in HEXA/RGBA/HSLA formats or in the palette. More information about working with color


Text setting

  1. Set text - the block that sets the default text in the panel
  2. Text color - the parameter that sets the color of the text. To set the color, click on the color in the block and specify the color either in HEXA/RGBA/HSLA formats or in the palette. More about working with color

Customizing the appearance of fonts


Standard Fonts

  1. Set Font - the option that defines the writing font for the selected text panel. Among the available fonts:Ubuntu.PT SerifRoboto MonoBadscript


Parallel use of font size block

  1. Set Maximum/Minimum Font Size - the block that allows you to set the maximum or minimum text size in the text panel respectively. The block can be used in parallel to set both minimum and maximum allowable text size


Font style blocks

  1. Font style - a set of blocks that allow you to apply different stylistic features to the text, namely:

    1. Set bold font style - the block, in which when selecting the truth, the bold style of text writing is applied, while when selecting the false value, the bold style is not applied

    2. Set an italic font style

    3. Set an underline font style

    4. Set cursive font style

    5. Set strikethrough font style

Text alignment

Text alignment - two vertical and horizontal alignment blocks that allow you to change the position of text on the text panel

  1. Vertical alignment - allows you to align the text along the horizontal axis. Alignment options include:
    1. Left edge
    2. Right edge
    3. Middle
    4. Fill in the middle
  2. Horizontal alignment - allows you to align the text along the vertical axis. Among the alignment options there are:
    1. By top edge
    2. Bottom edge
    3. Middle

Maintaining text proportions

A block that allows you to preserve the proportions of the text when scaling the text panel, or on the contrary ignore it

Text indent

The block that allows you to set fixed text indentation from the edges of the text panel. In the settings of the block it is possible to set the indents from all four sides of the panel