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.
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.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,064 |
Nodes: | 10 (0 / 10) |
Uptime: | 170:43:22 |
Calls: | 13,692 |
Files: | 186,936 |
D/L today: |
100 files (20,246K bytes) |
Messages: | 2,411,676 |