Ethereal-dev: [ethereal-dev] Font choice changes

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: Sun, 20 Aug 2000 01:12:59 -0700
 On Thu, Aug 17, 2000 at 10:00:31PM -0700, Guy Harris wrote:
> 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've checked in a change that makes them the default, on UNIX/X...

> 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 adds a "gui.font_name" preference...

> and allowing that to be set using the GTK+ font selection box.

...and lets you select a font from the "GUI" tab in the "Preferences"
dialog box.

Only one font is specified; the name of the boldface font is constructed
from the name of the normal-weight font.

Currently, you specify the name of the normal-weight font with the "-m"
flag; the "-b" flag is no longer supported.  Is there any need to
support even the "-m" flag, now, given that one can specify the font in
the preferences file?

Currently, selecting the font won't change the fonts used in the current
session; you'd have to exit Ethereal and restart it to get the new
fonts.  I'll have to see how to redraw the various widgets with a new
font in order to make that work.