• Font's messed up after returning from telgate

    From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Sep 9 11:55:08 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5595

    If you use (the stock) xtrn_sec.js to execute the gateway, then the fonts should be restored automatically (via the stock exec/postxtrn.js, which loads your default fonts as specified in your ctrl/fonts.ini).

    If you're executing the gateway via other means (your own custom JavaScript code), then you should add a call after executing the gateway:
    `load('fonts.js', 'default');`.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Mon Oct 14 10:36:51 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5735

    I'm using a modified xtrn_src.js from before the postxtrn.js stuff was added. I will add this in, or maybe revisit the whole thing to see if it now fits my needs with the postxtrn.js bit.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Mon Oct 14 10:42:55 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5736

    Hmm, this is already in function exec_xtrn

    ```
    function exec_xtrn(prog)
    {
    if(options.clear_screen_on_exec)
    console.clear();
    if(options.eval_before_exec)
    eval(options.eval_before_exec);
    load('fonts.js', 'xtrn:' + prog.code);
    bbs.exec_xtrn(prog.code);
    console.attributes = 0;
    console.attributes = LIGHTGRAY;
    load('fonts.js', 'default');
    if(options.eval_after_exec)
    eval(options.eval_after_exec);

    if(prog.settings&XTRN_PAUSE)
    console.pause();
    else
    console.line_counter=0;
    }
    ```

    I'll put some debugging code in and see what's going on.

    Hmm...seems I moved ctrl/fonts.ini out the way for some reason, maybe because I hated the default font and didn't have time to figure out how to change it to something more normal.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Mon Oct 14 11:00:06 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5737

    OK, question is, how do I figure out which font is used when there is no fonts.ini file and how do I make it the default when there is a fonts.ini?

    ![image](/uploads/e2cf02e0e97789f004b3760e42aa5480/image.png){width=368 height=214}
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Oct 14 17:24:29 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5738

    The simplest thing to do would be to just restore your fonts.ini file from default and modify to suit your taste (if necessary).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Mon Oct 14 17:38:39 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5739

    I have, I just don't know what this particular font is supposed to be. This one is even more default than the default which looks awful when I have fonts.ini in place.

    For comparison, this is with fonts.ini

    ![image](/uploads/18a25772fa6f8bb9b7bdf94118f567c8/image.png){width=372 height=217}
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Oct 14 17:58:59 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5740

    In the following section of your ctrl/fonts.ini file:
    ```
    [default:16]
    ;require=user !1
    normal=cp437
    high=digital
    blink=gothical
    highblink=computer

    [default:14]
    normal=cp437
    high=courier
    blink=oldenglish
    highblink=computer

    [default:8]
    normal=cp437
    high=bold
    ```

    Just comment out or remove the high, blink and highblink settings. That will make everything default to the basic cp437 font in syncterm.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Mon Oct 14 19:07:03 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/775#note_5741

    Perfect, thank you.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Mon Oct 14 19:07:03 2024
    close https://gitlab.synchro.net/main/sbbs/-/issues/775
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)