Re: Tk Unicode is slow
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

Re: Tk Unicode is slow

From: Keith Nash <kjn9@citizenearth.com>
Date: Thu Sep 29 2005 - 14:41:01 CEST

Thanks for the suggestions.

> As Donal noted, the delay is due to Tk doing a font lookup to
> find a suitable font for characters that are not recognized in
> the current font you have chosen to display. Use one with all
> the chars, and everything is fast. I have considered adding
> extra Tcl-level control over this fallback behavior, but it is
> hard to design a clean API to control this.

(...the feature requests keep rolling in...)

At the minimum, it would be useful if Tcl could be told to use the specified
font *only*, i.e. not to search every font on the system whenever it
encounters a missing glyph.

Ideally, one would be able to create a virtual font that borrows different
glyphs from different real fonts. It sounds as if this is what Tcl's font
lookup actually does - but it doesn't cache the virtual font metadata, and
it doesn't tell us what it is.

Thanks,

Keith.
Received on Thu Sep 29 16:11:56 2005