From david@lichteblau.com Thu Dec 21 10:57:18 2006
Date: Thu, 21 Dec 2006 10:57:18 +0100
From: David Lichteblau <david@lichteblau.com>
To: McCLIM developers <mcclim-devel@common-lisp.net>
Subject: Re: [mcclim-devel] Fwd: [mcclim-cvs] CVS mcclim
Message-ID: <20061221095718.GA31093@gargravarr.knowledgetools.de>
References: <20061220200710.5202C2202F@common-lisp.net> <6F81546F-6364-4E5C-8B1F-4195FDEEB7B6@bobobeach.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6F81546F-6364-4E5C-8B1F-4195FDEEB7B6@bobobeach.com>
User-Agent: Mutt/1.5.8i
Status: RO
Content-Length: 1002
Lines: 25

Quoting Cyrus Harmon (ch-mcclim@bobobeach.com):
> FWIW, the pango changes break gtkcairo on macos. I'm sure there's an  
> easy fix involving finding fonts, but I thought you should now that  
> this used to work and no longer does. All the glyphs come up as empty  
> rectangles.

Not sure.  When I specify an incorrect font name, I usually get Sans
Serif instead.

Can you try the following expression?  (After having started any
application to make sure the gtkairo port has been initialized.)

(clim-gtkairo::with-pango-context (context nil)
  (mapcar #'clim-gtkairo::pango_font_family_get_name
          (clim-gtkairo::pango-context-list-families context)))

The result should be a list of font family names.  We are looking for
"Courier New", "Serif", and "Sans".  If you don't have these exact
fonts, but alternatives exist, you could try to change the plist
clim-gtkairo:*default-font-families*.  For example, "Bitstream Vera Sans
Mono" works instead of "Courier New" for :FIX.


Thanks,
David

