Re: Tk Unicode is slow



Keith Nash wrote:
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.

At a minimum, this might not be to hard, if it is layered on top of named fonts. In fact, I think any control of font fallback would be layered on top of named fonts. Something like font create myfont -family Courier -size 10 -fallback 0

--
  Jeff Hobbs, The Tcl Guy
  http://www.ActiveState.com/, a division of Sophos
.



Relevant Pages

  • Re: Default font in dialog property pages
    ... Static text controls are the ones I most often change the font of; ... nice-looking headings (bold, large, centered types of headings). ... Each control IS a separate window, ...
    (microsoft.public.vc.mfc)
  • Re: variable pagelenght
    ... font 'control' was provided with Epson TMU receipt printers. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Moving controls programatially
    ... also down loaded the font that you suggested just in case I need it. ... (I know I need to iterate though the controls, but how do I get to the one I ... Also I am having no success with moving the control left or right. ... expressions can do a lot so you mightbe able to ...
    (microsoft.public.access.formscoding)
  • Re: Unicode, CRichEditCtrl, SetWindowText and Paste
    ... All .RC references use the Unicode version of the control. ... The Khmer fonts that I have were downloaded from a site the promotes Khmer. ... The problem could very well be a font issue since these did not come from ... to the rich edit control myself. ...
    (microsoft.public.vc.mfc)
  • Re: Font Stock Property Persistance
    ... Is using an ActiveX control in the ActiveX container considered to be run ... When using the font stock property in the ActiveX ... When in a MFC dialog, it doesn't crash for me, but the font does not ... control's Visual Studio project settings to launch Visual Studio for ...
    (microsoft.public.vc.atl)