• exec/load/tdfonts_lib.js

    From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Tuesday, April 22, 2025 19:49:00
    https://gitlab.synchro.net/main/sbbs/-/commit/26ed00e3dc0f463026c358f9
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    If lowercase char is not mapped to font, lookup the uppercased letter

    Not all fonts have the lowercase chars mapped

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Wednesday, April 23, 2025 16:09:00
    https://gitlab.synchro.net/main/sbbs/-/commit/26d7130ec83a1d66420dac80
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Add output() method that just outputs the font/string, doesn't print

    for Nelgin

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Wednesday, April 23, 2025 16:31:00
    https://gitlab.synchro.net/main/sbbs/-/commit/84647413fa38fd8db2b53136
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Terminate lines with CRLF not just LF

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Wednesday, April 23, 2025 18:25:00
    https://gitlab.synchro.net/main/sbbs/-/commit/07a6c7e1ac6c14627eff0701
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Make the 'opt' object predefinition optional (not required)

    Defaults to CP437/ANSI output in this case

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Wednesday, April 23, 2025 18:25:00
    https://gitlab.synchro.net/main/sbbs/-/commit/1d1315af7af21066e212800e
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    Add Ctrl-A output encoding (now the default)

    The output is CP437/Ctrl-A by default, use -u to force UTF-8 encoded characters if you need that or -a to force ANSI output if you need that.

    Removed the mIRC color support (that can be added back easiliy enough if anyone actually wants that).

    So the tdfiglet -e u|a option has been replaced with -u (UTF-8)
    and -c m|a option has been replaced -a (ANSI). Simpler usage with correct terminology.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thursday, April 24, 2025 15:26:00
    https://gitlab.synchro.net/main/sbbs/-/commit/655e9f65cdf6a4e96f4cd14c
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    If no font object or filename is passed to lib, pick a font file at random

    This moves the random file selection into tdfonts_lib.js

    We should also pick a font index at random (when opt.random is true), but that's not happening yet.

    Also fixed up some indentation issues (when using 4 space tabstops). The original commit of this file used spaces for indentation, so it's kind of
    a mess now and should be uncrustified.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thursday, April 24, 2025 15:39:00
    https://gitlab.synchro.net/main/sbbs/-/commit/06b2c30fd5f8649bfdb94ba0
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    Add PTSC headers to specify the tab-size and to use tabs for indentation

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thursday, April 24, 2025 16:04:00
    https://gitlab.synchro.net/main/sbbs/-/commit/c9086f14485e76f248923a0c
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    When random mode is specified and multiple fonts exist in font file...

    pick one at random.

    Display the font index value when the info mode is requested.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thursday, April 24, 2025 16:44:00
    https://gitlab.synchro.net/main/sbbs/-/commit/c5af0423dba8144eb6506702
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    Support combination use of tdfiglet -x and -r options

    e.g. to use only the first font (index 0) from a randomly selected font file.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thursday, April 24, 2025 16:44:00
    https://gitlab.synchro.net/main/sbbs/-/commit/a53728f520d762c167f921a6
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Fix off-by-one error when using opt.index value

    e.g. opt.index==0 was treated the same as opt.index==1

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thursday, April 24, 2025 17:44:00
    https://gitlab.synchro.net/main/sbbs/-/commit/f3bc6d707905a5bffe847847
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Auto-detect the screen width when the width option isn't specified

    This fixes the center/right justification options for terminals not exactly
    80 columns in width.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thursday, April 24, 2025 18:19:00
    https://gitlab.synchro.net/main/sbbs/-/commit/7a03c138f410106204967e86
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    When right justifying and no margin, don't print CRLF (blank lines)

    ... assume the terminal auto-line-wrapped for us.

    Allow a margin (for left or right justification) to be specified in
    opt.margin (default: 0).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Friday, April 25, 2025 02:14:00
    https://gitlab.synchro.net/main/sbbs/-/commit/f1a9f946c0cf10890d750f59
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Remove accidental debug output

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Friday, April 25, 2025 02:14:00
    https://gitlab.synchro.net/main/sbbs/-/commit/dc96912918c68ce800418c40
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Fix the Ctrl-A background color mapping

    I don't remember why these aren't in CGA order

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Friday, April 25, 2025 10:01:00
    https://gitlab.synchro.net/main/sbbs/-/commit/a1edc650f13ea145cef654e2
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Throw an exception when rendered line would exceed screen width

    since we don't support line wrapping or truncation (yet).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS@VERT to Git commit to main/sbbs/m on Saturday, April 26, 2025 18:16:00
    https://gitlab.synchro.net/main/sbbs/-/commit/06d761845640dd88f770c5cd
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    Add word-wrap support

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS@VERT to Git commit to main/sbbs/m on Saturday, April 26, 2025 18:49:00
    https://gitlab.synchro.net/main/sbbs/-/commit/c0a9c942fd0d0faacdc94bf8
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Fix negaitve padding calculation (for center justification of long srings)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS@VERT to Git commit to main/sbbs/m on Saturday, April 26, 2025 19:38:00
    https://gitlab.synchro.net/main/sbbs/-/commit/dc6caaf2f3ac8efc95b9b732
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    Add tdfiglet -R option for random font with retry (e.g. if too wide for screen)

    ... use with caution as you could get into an infinite exception/retry loop using this feature.

    tdfonts_lib opt.retry added (default: false/disabled)

    Removed some unnecessary comments from lib source

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Saturday, April 26, 2025 23:14:00
    https://gitlab.synchro.net/main/sbbs/-/commit/3d87546c9e74b301495b673b
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    Add support for looping through fonts (-l option) with pause (-p)

    Cleaned-up the font filename weirdness in the lib.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net