How to display several fonts with tkHTML?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

How to display several fonts with tkHTML?

From: Helmut Giese <hgiese@ratiosoft.com>
Date: Thu Dec 22 2005 - 21:10:29 CET

Hello out there,
the text widget is able to display certain pieces of text using
different fonts via tags. The tkHTML widget is based on the text
widget, so in principle it should be capable of handling different
fonts.on the same page, too.
I am aware of the -fontcommand option, but the function associated
with it only ever gets a size code and some attributes like 'bold',
'fixed' etc. - not enough information to switch to a different font.

Is there a way to use several fonts on the same page with tkHTML or is
this feature just not implemented? Are there alternatives offering
this feature?
Any hints or advice will be greatly appreciated.
Best regards
Helmut Giese
Received on Fri Dec 23 19:03:04 2005