[Pkg-tcltk-devel] Bug#543221: tk8.6: Font specification incompatible with legacy apps

Harald Braumann harry at unheit.net
Sat Aug 29 23:26:28 UTC 2009


Hi,

On Sat, 29 Aug 2009 22:31:27 +0400
Sergei Golovan <sgolovan at gmail.com> wrote:

> A big difference between Tk and xterm is that in Tk you can't choose
> between font rendering systems at runtime as in xterm (-fn or -fa in
> command line, font or faceName and faceSize in XRDB). Tk can be
> compiled with Xft support in which case it renders all fonts using
> Xft. 

Thanks for the clarification.

> So, if Tk is built with Xft enabled, it still understands XLFD
> but converts it into Xft structure internally. As a result, you don't
> have to use the new font naming format in your resource file. Just
> specify XLFD and Tk will still use Xft to render fonts. For "DejaVu
> Sans Mono" 7 the following specification should be acceptable by both
> emacs and Tk:
> 
> *font: -dejavu-dejavu sans mono-medium-r-normal-*-*-70-*-*-*-*-*-*

OK, that's all that's needed.

> 
> If you want to specify different fonts based on toolkit they are based
> on, then you're out of luck, because XRDB doesn't allow that.

No, that's not required.

> I'm changing the bug severity to wishlist as it doesn't fit to
> important, and will close it if yuo won't give some more info.

Yes, please go ahead and close the bug.

Thanks,
harry





More information about the Pkg-tcltk-devel mailing list