|
NAMEtext_surface - Create a simplified text video object SYNOPSISvid
DESCRIPTIONThis creates a surface that is backed by a TUI screen of rows and cols maximum dimensions. It works as a cheaper form of render_text as a way of retaining text contents for later querying and modification, without the parsing complexity and volatility of render_text . The contents of rowtable is a table for each row to populate, with an optional int:y and int:x to skip to specific positions to avoid having a number of empty cells. Each n-indexed entry in the rowtable can be either a string or an attribute table which are covered below. This is marked experimental still as some details are yet to be fleshed out and subject to change, mainly how one can alter the internal font representation (currently uses the set default system font), get feedback on shaped line offsets, query for picking, shaping, processing direction and ligature substitutions. EXAMPLE-- @group: image -- @cfunction: textsurface -- @related: render_text function text_surface0() EXAMPLE-- @group: image -- @cfunction: textsurface -- @related: render_text function text_surface1()
|