Ethereal-dev: RE: [Ethereal-dev] RFC: Prefer GTK2 over GTK1 as default

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Eric Wedel <ewedel@xxxxxxxxxxx>
Date: Fri, 9 Jan 2004 16:24:44 -0800
> From: Guy Harris

(snip)

> > Another problem comes to my mind:
> > the GTK2 font selection cannot filter between fixed-width and 
> > non-fixed-width fonts.
> > The current GTK1 dialog will show only the fixed-width fonts (using 
> > some GTK filtering),
> > this functionality isn't available in GTK2.
> > There seem's to be no solution for this :-(
> 
> There's a mail message from Owen Taylor on this:
> 	
> http://mail.gnome.org/archives/gtk-devel-list/2002-July/msg00202.html
> 
> "Give us code that can distinguish reliably between monospaced and
> not-monospaced fonts for Type1 and TrueType fonts and at that
> point it becomes reasonable to think about such an API. It's
> not all that easy to do.

Having fiddled with fonts back in my TeX days, this comment
seems ludicrous.  In fact a message or so along in the same thread,
Allin Cottrell replies with some sample code which uses a simple
heuristic to determine whether a font is monospaced:
  http://mail.gnome.org/archives/gtk-devel-list/2002-July/msg00212.html

Not sure if this is of help for ethereal, but it might be worth a look.
  
> Even then, there are still problems - Pango by default will
> draw characters not in the main font using fallback fonts --
> whose metrics almost certainly don't match your grid. So,
> you'd have to be able to turn this off."

No idea about the impact of this one.

regards, Eric


*********************************************************************
This e-mail and any attachment is confidential. It may only be read, copied and used by the intended recipient(s). If you are not the intended recipient(s), you may not copy, use, distribute, forward, store or disclose this e-mail or any attachment. If you are not the intended recipient(s) or have otherwise received this e-mail in error, you should destroy it and any attachment and notify the sender by reply e-mail or send a message to sysadmin@xxxxxxxxxxx
*********************************************************************