• exec/load/tdfonts_lib.js exec/tdfiglet.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Wed Apr 23 18:25:58 2025
    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.
    --- SBBSecho 3.24-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Thu Apr 24 15:39:06 2025
    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
    --- SBBSecho 3.24-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Thu Apr 24 15:26:50 2025
    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.
    --- SBBSecho 3.24-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Thu Apr 24 16:44:42 2025
    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. --- SBBSecho 3.24-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Feb 23 02:24:18 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/90b77173708c36de67b1532d
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    Add support for specifying an alternate font directory (-d option)

    Find/use any capitalization of *.tdf files in the font directory (not just *.tdf, lowercase).

    Fix off-by-one bug in random font file selection: random() returns a value between 0 and the argument value minus 1, so if you're selecting a random
    index into an array, just pass the array length (not array length plus one).

    Fix issue #1077
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Feb 23 15:37:16 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/82bf68d8b5a1ce6850d1dbc5
    Modified Files:
    exec/load/tdfonts_lib.js exec/tdfiglet.js
    Log Message:
    tdfiglet -l now loops through all fonts of each .tdf file

    ... unless a specific index (-x option) was specified

    Fix issue #1080, the FHD issue
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)