• Detecting XBin Capabilities

    From deepthaw@VERT/CORTEX to All on Sun Nov 15 09:22:16 2020
    Now that I'm digging into making/displaying Xbin image files, is there a mechanism for detecting if the remote user can view them, and what font size to use?

    I presume this'll all be in JavaScript.

    ---
    ■ Synchronet ■ c.o.r.t.e.x 2.0.2.0 | telnet://deepthaw.net
  • From Digital Man@VERT to deepthaw on Sun Nov 15 15:39:58 2020
    Re: Detecting XBin Capabilities
    By: deepthaw to All on Sun Nov 15 2020 09:22 am

    Now that I'm digging into making/displaying Xbin image files, is there a mechanism for detecting if the remote user can view them, and what font size to use?

    I presume this'll all be in JavaScript.

    Yup, all in JS. load/cterm_lib.js contain the methods: charheight() and supports_fonts().
    --
    digital man

    Rush quote #64:
    He's cleaning up his systems to keep his nature pure .. New World Man
    Norco, CA WX: 84.6°F, 12.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrs ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net