Create Graphics with ETX CG Editor

66.4.2 Configure Text Item Types

The type of text item is set by the 'type' property in the item XML description. The following steps showcase how to configure text item types to your playlist:

  • Using ETX CG Editor to Edit Text Type Item
    1. To input text item types, go to ItemListForm.

      ItemListForm

    2. Select 'Text', drag and drop to the Preview window. Modify XML parameters on the 'Text Properties' toolbar.

      Text_Properties

    3. Next, copy the XML code as shown in the Text Item Type table below and paste the XML code to the text content.

      Text_Properties_1

    4. Next, select "Apply" to apply changes
  • Text Item Types Table
  • Below are some of the configuration examples on text item types:
    ETX-G Text Type value - eCGTT_Counter
    XML Type Property Value: Type=’counter'
    Description: Counter
    Additional Parameters: counter-start - indicates from what number counter starts, counter-start='500'
    Example : <text type='counter' font='Segoe UI' font-size='36' outline-color='Black' color='White' word-break='no' counter-start='500'>00000</text>

    text_type_eCGTT_Counter

    ETX-G Text Type value - eCGTT_DateTime
    XML Type Property Value: Type=" date-time
    Description: Date and time
    Additional Parameters: time-offset - indicates a shift in date time from current system time, time-offset='00:00:05:00.'
    Backwards-offset - indicates the direction of time shifting; if 'yes' - time shifts backwards, backward-offset='no.'
    Example : <text type='date-time' font='Segoe UI' font-size='36' color='White' word-break='no' time-offset='00:00:00:00' backward-offset='no'>yyyy/MM/dd HH:mm:ss</text>

    text_type_eCGTT_DateTime

    ETX-G Text Type value - eCGTT_FrameNumber
    XML Type Property Value: Type=’frame-number'
    Description: Number of received frames
    Additional Parameters: None
    Example : <text type='frame-number' font='Arial' font-size='20' color='White' word-break='no'>00000</text>

    text_type_eCGTT_FrameNumber

    ETX-G Text Type value - eCGTT_FrameTime
    XML Type Property Value: Type=’frame-time'
    Description: Time of received frame
    Additional Parameters: None
    Example : <text type='frame-time' font='Arial' font-size='26' color='White' word-break='no'>0.000</text>

    text_type_eCGTT_FrameTime

    ETX-G Text Type value - eCGTT_StopWatch
    XML Type Property Value: Type=’stopwatch'
    Description: Common timer (from start time to infinity)
    Additional Parameters: start-time - to indicate from what time the timer should start, start-time='00:45:00:00.'

    You should set text content in the 'HH:mm: ss' format to specify the time format.
    Example : <text type='stopwatch' font='Arial' font-size='26' color='White' word-break='no' pause='on' start-time='00:45:00:00'>HH:mm:ss.fff</text>

    text_type_eCGTT_StopWatch

    ETX-G Text Type value - eCGTT_Suntitles
    XML Type Property Value: Type=’subtitles’
    Description: Subtitles from SRT files
    Additional Parameters: See Subtitles for more information
    Example : <text type='subtitles' font-face='Arial' font-size='26' align='center' fill-color='Red(255)' outline='2.7' font='Arial' outline-color='Black' color='White' word-break='no' time-offset='0'>Subtitles</text>

    Embim31

    ETX-G Text Type value - eCGTT_Text
    XML Type Property Value: Type=’text'
    Description: Simple text
    Additional Parameters: None
    Example : <text type='text' font='Times New Roman' font-size='36' outline='1.5' outline-color='Black' color='Lime' word-break='no'>Sample Text</text>

    text_type_eCGTT_Text

    ETX-G Text Type value - eCGTT_Timecode
    XML Type Property Value: Type=’timecode'
    Description: Drop frame timecode of the received frame
    Additional Parameters: time-offset - to indicate time shifting in display timecode, time-offset='00:30:00:00'
    Example : <text type='timecode' font='Arial' font-size='26' color='White' word-break='no' time-offset='00:30:00:00'>HH:MM:SS:FF</text>

    text_type_eCGTT_Timecode

    ETX-G Text Type value - eCGTT_Timecode_NDF
    XML Type Property Value: Type=’timecode-ndf'
    Description: Non-drop frame timecode of the received frame
    Additional Parameters: time-offset - to indicate time shifting in display timecode, time-offset='00:30:00:00'
    Example : <text type='timecode-pdf font='Arial' font-size='26' color='White' word-break='no' time-offset='00:00:00:00'>HH:MM:SS:FF</text>

    text_type_eCGTT_Timecode_NDF

    Formatting flags
    The formatting flags are listed in the table:
    eCG_DTFlags Flag - eCGDT_BOTTOM
    XML Property: Align=’bottom'
    Description: Vertical alignment for text
    Example : scale='text-scale' align='bottom' edges-smooth='3' pos-x='2' pos-y='251' show='yes' move-type='accel-both' alpha='255' bg-color='Black(0)' pixel-ar='0.0' play-mode='loop' interlace='auto' width='778' height='242' pause='no'

    text_align_bottom

    eCG_DTFlags Flag - eCGDT_CENTER
    XML Property: Align=’center'
    Description: Horizontal alignment for text
    Example : scale='text-scale' align='center' edges-smooth='3' pos-x='2' pos-y='251' show='yes' move-type='accel-both' alpha='255' bg-color='Black(0)' pixel-ar='0.0' play-mode='loop' interlace='auto' width='778' height='242' pause='no'

    text_align_center

    eCG_DTFlags Flag - eCGDT_END_ELLIPSIS
    XML Property: Trimming=’ELL-CHAR'
    Description: Ellipsis is not implemented
    Example: None
    eCG_DTFlags Flag - eCGDT_FLIP_HORZ
    XML Property: Flip=’X'
    Description: Horizontal mirroring of text
    Example : text font='Arial' format='' flip='X'

    text_flip_x


    eCG_DTFlags Flag - eCGDT_FLIP_VERT
    XML Property: Flip=’Y'
    Description: Vertical mirroring of text
    Example :  text font='Arial' format='' flip='Y'

    text_flip_y

    eCG_DTFlags Flag - eCGDT_LOWERCASE
    XML Property: Style=’LOWERCASE'
    Description: Lowercase script
    Example :  text font='Arial' style='lowercase'

    text_lowercase

    eCG_DTFlags Flag - eCGDT_NO_TAB
    XML Property: Format=’NO-TAB'
    Description: Ignore tabs if there are any
    Example :  text font='Arial' format='no-tab'

    text_no_tab

    eCG_DTFlags Flag - eCGDT_MEASURE_TRAILING_SPACE
    XML Property: Format=’NMTS'
    Description: Do not measure trailing spaces; if the text contains spaces in the end, e.g.' sample text ', the spaces will be ignored with the 'NMTS' setting and counted in case of 'MTS.'
    Example :  text font='Arial' format='nmts' font-size='60'

    text_nmts

    eCG_DTFlags Flag - eCGDT_PATH_ELLIPSIS
    XML Property: Trimming=’ELL-PATH'
    Description: Ellipsis is not implemented
    Example: none
    eCG_DTFlags Flag - eCGDT_RIGHT
    XML Property: Align=’right'
    Description: Horizontal alignment for text
    Example :  scale='text-scale' align='right' edges-smooth='3' pos-x='2' pos-y='251' show='yes' move-type='accel-both' alpha='255' bg-color='Black(0)' pixel-ar='0.0' play-mode='loop' interlace='auto' width='498' height='188' pause='no'

    text_align_right

    eCG_DTFlags Flag - eCGDT_RTLREADING
    XML Property: Format=’RTL'
    Description: Right-to-left direction of text
    Example :  text font='Arial' format='RTL' font-size='60'

    text_right_2_left

    eCG_DTFlags Flag - eCGDT_SINGLELINE
    XML Property: Format=’SINGLE-LINE'
    Description: Ignore line breaking in the source text and use it as single-line text
    Example :  text font='Arial' format='single-line' font-size='60'

    text_single_line

    eCG_DTFlags Flag - eCGDT_TOP_LEFT
    XML Property: Align=’top-left'
    Description: Alignment for text (both vertical and horizontal)
    Example :  scale='text-scale' align='top-left' edges-smooth='3' pos-x='2' pos-y='251' show='yes' move-type='accel-both' alpha='255' bg-color='Black(0)' pixel-ar='0.0' play-mode='loop' interlace='auto' width='498' height='188' pause='no'

    text_align_top_left

    eCG_DTFlags Flag - eCGDT_TRIMMING_CHAR
    XML Property: Trimming=’ELL-CHAR'
    Description: Ellipsis is not implemented
    Example: None
    eCG_DTFlags Flag - eCGDT_TRIMMING_WORD
    XML Property: Trimming=’ELL-WORD'
    Description: Ellipsis is not implemented
    Example: None
    eCG_DTFlags Flag - eCGDT_UPPERCASE
    XML Property: Style=’uppercase'
    Description: Uppercase script
    Example :  text font='Arial' style='uppercase' font-size='60'

    text_uppercase

    eCG_DTFlags Flag - eCGDT_VERTICAL
    XML Property: Format=’VERTICAL'
    Description: Vertical text
    Example :  text font='Arial' font-size='60' format='VERTICAL'

    text_format_vertical

    eCG_DTFlags Flag - eCGDT_WORD_ELLIPSIS
    XML Property: Trimming=’ELL-WORD'
    Description: Ellipsis is not implemented
    Example: None
    eCG_DTFlags Flag - eCGDT_WORDBREAK
    XML Property: Word-break=’yes’
    Description: Use line break if the text is wider than item width
    Example :  text font='Arial' font-size='30' word-break='yes'

    text_word_break

Embim43
Embim31
ItemListForm
Text_Properties_1
Text_Properties
text_type_eCGTT_Timecode
text_type_eCGTT_StopWatch
text_type_eCGTT_Text
text_type_eCGTT_FrameTime
text_type_eCGTT_FrameNumber
text_type_eCGTT_Counter
text_type_eCGTT_DateTime
text_format_vertical
text_align_top_left
text_align_bottom
text_flip_y
text_flip_x
text_lowercase
text_nmts
text_right_2_left
text_no_tab
text_align_right
text_word_break
text_uppercase
text_right_2_left
text_single_line