• Re: how to configure the shtmlview widget

    From Ashok@21:1/5 to Mark Summerfield on Sat Aug 16 12:19:18 2025
    Complete stab in the dark ..

    What happens if you move the font configure line after the browse method
    call? I wonder if loading a page clears tags.

    /Ashok

    On 8/14/2025 3:43 PM, Mark Summerfield wrote:
    I've started using the shtmlview widget to display html versions of man pages created by `exec man -Thtml $filename > $html`.

    I want shtmlview to use a monospace font. I've created such a font but I can't
    work out how to do this.

    I've tried:

    font create Mono -family $family -size $size
    :
    $View helptext tag configure mono -font Mono
    :
    $View browse $htmlurl
    $View helptext tag add mono 1.0 end

    where $View is a shtmlview widget, but it has no effect.
    Yet when I do, say,

    $View helptext configure -background pink

    it works fine.

    Ideally, I'd like to set the body font, and bold and italic.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)