For Programmers: Free Programming Magazines  


Home > Archive > Tcl > March 2004 > Re: Looking for tk internals information









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Looking for tk internals information
Kevin Kenny

2004-03-28, 12:01 am

Larry Virden:

Benjamin Riefenstahl:[color=darkred]
> I assume you mean "a new interface to introspectively determine what
> font file corresponds to the selected font".


No, not at all! Tk has an elaborate font substitution mechanism.
This mechanism allows it, if a character is lacking in a given
font, to choose an alternative font that has the character.
One missing piece (and I agree with Larry that it would be useful)
would be a bit of introspection that accepted a font, plus a
character, and returned the name of the font used to display
that character. Perhaps it would be even more useful if it
accepted a font and a string, and returned a list of actual
fonts after substitution. In fact, the second is required
if we ever do proper Unicode composing-character support, since
we may need to track down a composed glyph.

--
73 de ke9tv/2, Kevin

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com