Ethereal-users: Re: [ethereal-users] Demande info
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Thu, 17 Aug 2000 22:00:31 -0700
(For the benefit of those reading "ethereal-dev" but not "ethereal-users", the problem is that not all UNIX-flavored systems appear to supply the Lucida Typewriter fonts; those are the default fonts for the fixed-width text in Ethereal-on-X11, so, on those platforms, Ethereal doesn't start unless you choose different fonts with "-m" and "-b".) On Thu, Aug 17, 2000 at 10:30:41AM -0700, Guy Harris wrote: > I suppose you could fall back on the Old Reliable X Font "fixed": > > ethereal -m fixed ... ...which, in XFree86 and, I suspect, X11 from the X Consortium, is an alias for -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 "6x13" is also an alias for that, and there's a "6x13bold" which is an alias for -misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-1 If we make MONO_MEDIUM_FONT and MONO_BOLD_FONT be -*-fixed-medium-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 and -*-fixed-bold-r-semicondensed-*-*-120-*-*-*-*-iso8859-1 that loads the fonts in question as the default fonts. With those fonts, the display seems to look pretty good - it's a bit more tightly, well, *condensed* horizontally than with Lucida Typewriter, but some might consider that a feature, not a bug (on my display right now, with one capture, Lucida Typewriter shows an Info field for one packet that reads "DHCP Discover - Transaction ID 0" with the "0" cut off, whilst "fixed" shows "DHCP Discover - Transacton ID 0xffeefe3b". Those fonts appear to have the same width, so that selecting text doesn't cause any weird shifting. I've attached a patch to change the default fonts to the "fixed semicondensed" fonts in question; people may want to try them and decide whether they're too narrow, or too small, or too ugly, or too {something} to make the default fonts - if not, I'm tempted to make them the default. I'll also look into putting a font preference (a single font preference - no point in requiring that the medium-weight and bold fonts be specified separately, especially given that they have to have the same width - and done in such a way as to, hopefully, not be X-dependent) into the preferences file, and allowing that to be set using the GTK+ font selection box.
Index: gtk/main.h =================================================================== RCS file: /usr/local/cvsroot/ethereal/gtk/main.h,v retrieving revision 1.16 diff -c -r1.16 gtk/main.h *** gtk/main.h 2000/08/11 13:32:58 1.16 --- gtk/main.h 2000/08/18 04:47:03 *************** *** 36,43 **** #define MONO_MEDIUM_FONT "-*-lucida console-medium-*-*-*-*-100-*-*-*-*-*-*" #define MONO_BOLD_FONT "-*-lucida console-bold-*-*-*-*-100-*-*-*-*-*-*" #else ! #define MONO_MEDIUM_FONT "-*-lucidatypewriter-medium-r-normal-*-*-120-*-*-*-*-iso8859-1" ! #define MONO_BOLD_FONT "-*-lucidatypewriter-bold-r-normal-*-*-120-*-*-*-*-iso8859-1" #endif #define RC_FILE PF_DIR "/gtkrc" #define DEF_WIDTH 750 --- 36,43 ---- #define MONO_MEDIUM_FONT "-*-lucida console-medium-*-*-*-*-100-*-*-*-*-*-*" #define MONO_BOLD_FONT "-*-lucida console-bold-*-*-*-*-100-*-*-*-*-*-*" #else ! #define MONO_MEDIUM_FONT "-*-fixed-medium-r-semicondensed-*-*-120-*-*-*-*-iso8859-1" ! #define MONO_BOLD_FONT "-*-fixed-bold-r-semicondensed-*-*-120-*-*-*-*-iso8859-1" #endif #define RC_FILE PF_DIR "/gtkrc" #define DEF_WIDTH 750
- References:
- Re: [ethereal-users] Demande info
- From: francois.honore@xxxxxxxxxxxxxx
- Re: [ethereal-users] Demande info
- From: Guy Harris
- Re: [ethereal-users] Demande info
- Prev by Date: Re: [ethereal-users] Demande info
- Next by Date: RE: [ethereal-users] Demande info
- Previous by thread: Re: [ethereal-users] Demande info
- Next by thread: RE: [ethereal-users] Demande info
- Index(es):