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

2009-08-29 Thread Sergei Golovan
severity 543221 wishlist
tags 543221 moreinfo
thanks

On Sun, Aug 23, 2009 at 2:22 PM, Harald Braumannha...@unheit.net wrote:

 Fonts can now be specified in additional formats. E.g., I can set the X 
 resource
  *font: DejaVu Sans Mono 7
 and this works with tk8.6-apps. But it breaks legacy apps:
  $ xterm
  xterm: cannot load font DejaVu Sans Mono 7

  $ emacs
  Font `DejaVu Sans Mono 7' is not defined

 They expect an XLFD in the font resource. It is thus not possible to specify 
 an
 Xft default font. Each application would have to be configured separately.

 The solution IMO is to indroduce new variables for the new font 
 specifications,
 just like xterm did when it gained Xft support (XTerm*faceName, 
 XTerm*faceSize).

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

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.

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.

Cheers!
-- 
Sergei Golovan



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#543221: tk8.6: Font specification incompatible with legacy apps

2009-08-29 Thread Harald Braumann
Hi,

On Sat, 29 Aug 2009 22:31:27 +0400
Sergei Golovan sgolo...@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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#543221: tk8.6: Font specification incompatible with legacy apps

2009-08-23 Thread Harald Braumann
Package: tk8.6
Version: 8.6.0~b1-2
Severity: important

Fonts can now be specified in additional formats. E.g., I can set the X resource
  *font: DejaVu Sans Mono 7
and this works with tk8.6-apps. But it breaks legacy apps:
  $ xterm
  xterm: cannot load font DejaVu Sans Mono 7

  $ emacs
  Font `DejaVu Sans Mono 7' is not defined

They expect an XLFD in the font resource. It is thus not possible to specify an
Xft default font. Each application would have to be configured separately.

The solution IMO is to indroduce new variables for the new font specifications,
just like xterm did when it gained Xft support (XTerm*faceName, XTerm*faceSize).


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29.3
Locale: LANG=POSIX, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tk8.6 depends on:
ii  libc6  2.9-23GNU C Library: Shared libraries
ii  libfontconfig1 2.6.0-4   generic font configuration library
ii  libfreetype6   2.3.9-5   FreeType 2 font engine, shared lib
ii  libx11-6   2:1.2.2-1 X11 client-side library
ii  libxext6   2:1.0.4-1 X11 miscellaneous extension librar
ii  libxft22.1.13-3  FreeType-based font drawing librar
ii  libxrender11:0.9.4-2 X Rendering Extension client libra
ii  libxss11:1.1.3-1 X11 Screen Saver extension library
ii  tcl8.6 8.6.0~b1-3Tcl (the Tool Command Language) v8
ii  zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages tk8.6 recommends:
ii  mrxvt [x-terminal-emulator]   0.5.4-1lightweight multi-tabbed X termina
ii  tilda [x-terminal-emulator]   0.09.6-1   terminal emulator with first perso
ii  xterm [x-terminal-emulator]   243-1  X terminal emulator

tk8.6 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org