Usage:
- First install latest samyGOso as usual, if needed.
- Extract attached archive and copy contents of out- folder (libText.so and all fontX.raw) to /mtd_rwcommon
- Execute
Code: Select all
samyGOso -d -A -B -l /mtd_rwcommon/libText.so ARG[S]
Common:
- TEXT:"your text" - Text to display, use '\' for linefeed (e.g. TEXT:"line1\line2\line3" == TEXT:"$(echo -e "line1\nline2\nline3")" )
- FILE:/full/path/to/textfile - Display text from file (at least TEXT or FILE are mandatory args)
- FONT:0-4 - Select font to use
- FONT:0 - TV built-in "default" font, see first screenshot above (full UTF-8 support).
- FONT:1-4 - Bitmap fonts, monospace, ASCII (+Latin-1) only. Overview of usable ones (for now):SpoilerShowFONT:1 (default, 10x20px) FONT:2 (18x36px) FONT:3 (50x50px, capital letters only) FONT:4 (32x32px, capital letters only)
- CENTER:1-9 - Where to display text on screen (look at your numpad, default is 7=upper-left). Only 1 or 7 accepted for FONT:0.
- TIMEOUT:seconds - How long to display text (default is 0=unspecified=unlimited)
- COLOR:0xAARRGGBB - Specify font color (default: 0xFFFFFFFF=white=as bitmap). 0xAA defines transparency on FONT:0 (0xFF=plain).
- NOCLEAR - Do not clear previous text/OSD before displaying another (and do not wipe screen on timeout, except on SCROLL or FONT:0)
- SCROLL - Scroll down to the end of text if it overlaps screen (mostly for text file, else only the beginning will be shown)
- WIPE - Clear screen from anything prior (to be used alone, e.g. if some text had previously been displayed without timeout)
- FB - Use TV "other" framebuffer. TV owns 2 layers, one is mostly used for guide/smarthub/mediaP, other one (lib default) for info/channelList/source... It depends on which TV OSD you prefer to (temporarily) erase to display your own text instead
- SIZE:pixels - Font size in pixels.
- POSX:pixels - Text left corner horizontal position.
- POSY:pixels - Text up corner vertical postion (beware that depending on TVs, OSD is either 720p or 1080p, check log to know).
- STYLE:n - Font style. 0=Normal 1=Italic 2=Bold 4=Reverse italic 8=Black outlined. Can be a sum of values if more than one style is expected at once (e.g. bold+italic+outlined = 1+2+8 = 11).
- FONTPATH:/full/path/to - Path where font bitmaps are located (default is /mtd_rwcommon, font1-4.raw files HAVE to be somewhere)
- NOALPHA - Disable font transparency (=mostly disable smoothing on FONT:1/2)
Sample usages (from screenshots above):
Code: Select all
samyGOso -d -A -B -l /mtd_rwcommon/libText.so FILE:/dtv/ScreenShot.log SIZE:24 COLOR:0xA010F010 SCROLL STYLE:11 TIMEOUT:5 FONT:0
samyGOso -d -A -B -l /mtd_rwcommon/libText.so FILE:/dtv/ScreenShot.log SCROLL CENTER:7 COLOR:0xf0f010
samyGOso -d -A -B -l /mtd_rwcommon/libText.so TEXT:'WELCOME TO SAMYGO !' FONT:3 CENTER:5
Code: Select all
28/6/2015
v0.1.3 - Added non-bitmap built-in TV font (FONT:0)
22/6/2015
v0.1.0 - First public release