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:
ItemListForm
Text_Properties
Text_Properties_1
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