• exec/load/tdfonts_lib.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tue Apr 22 19:49:02 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Wed Apr 23 16:09:36 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Wed Apr 23 16:31:19 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Wed Apr 23 18:25:58 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Thu Apr 24 16:04:24 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Thu Apr 24 16:44:42 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Thu Apr 24 17:44:30 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Thu Apr 24 18:19:28 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Fri Apr 25 02:14:06 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Fri Apr 25 02:14:06 2025
    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 Linux)@VERT to Git commit to main/sbbs/master on Fri Apr 25 10:01:09 2025
    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/master on Sat Apr 26 18:49:26 2025
    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 Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Jan 29 19:54:51 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ea8b688370f19178be6c0c69
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Fix bug with Ctrl-A output, switching from high to low intensity fg-colors

    I was wondering why the ANSI output looked different/better than the Ctrl-A output. This was the bug.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Feb 22 00:44:35 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/2f24f4bd3d93cd4b932d6409
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Add support for block fonts

    This minor change appears to be all that was necessary to support block TheDraw Fonts, or at least, the example fonts that Nelgin sent me:

    TDFONTS1.TDF and TDFONTS2.TDF

    Outline fonts (e.g. TDFONTS0.TDF) appear to need more special handling still (e.g. the mapping of 'A' to 205, etc.).

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Feb 22 02:19:50 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/426f4c468bfbde2e7e643a13
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Add support for outline fonts (e.g. TDFONTS0.TDF)

    Using mapping from ASCII CP437 chars from https://www.roysac.com/blog/2014/04/thedraw-fonts-file-tdf-specifications/
    with the exception that the "Inside spaces" and "Filler for all leading
    spaces" are replaced with space rather than the 0xF7 and '@' characters.

    This includes the disabling of a warning message about a condition that is apparently normal with outline fonts.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Feb 22 02:37:05 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/c878d2bdb2965552230ccc3a
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    White-space changes only

    Ran this through js-beautify to replace all the indentation with tabs and it made a few brace changes.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Feb 22 04:31:56 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9fdcd4bf491092ef69ab0f01
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Re-enable the warning about "Exceed glyph call bounds"

    but only for non-outline fonts (just in case it's helpful with those)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Feb 22 04:31:56 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/b39f9bb3c498ff0ca0e02fc9
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    Display the fonttype as a string

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