| 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
|