Re: WITH-BUFFER-FLUSH-INHIBITED and TRANSLATE-DEFAULT

Iban HATCHONDO <[email protected]> Mon, 12 May 2003 01:52:03 +0200 (CEST)
Newsgroups gmane.lisp.clx.devel
Message-ID <[email protected]>
 --- Daniel Barlow <[email protected]> a écrit : >
-----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> 
> Gary Byers <[email protected]> writes:
> 
> > The first thing that TRANSLATE-DEFAULT does in
> those CLX versions is
> > to try to call FONT-MIN-CHAR on the specified font
> object.  If font
> > information for the font has already been
> obtained, it'll be used;
> > otherwise, QUERY-FONT will try to fill in the
> information that
> > FONT-MIN-CHAR needs (the font's
> FONT-INFO-INTERNAL.)
> 
> FWIW, I've observed lockups in this area as well,
> but I blamed them on
> alpha-quality SBCL locking code.  But if you're
> seeing them in OpenMCL
> as well, perhaps I should be less quick to blame my
> own code ...
> 
> This is newish code which iirc was something to do
> with handling
> non-ascii characters more correctly: using
> font-min-char and
> font-max-char instead of graphic-char-p, which
> depends on the
> implementation to get right.  See the patch to
> text.lisp in
> 
>
http://clozure.com/pipermail/portable-clx-devel/2003-February/000004.html
> 
> I _think_ it may have been Iban Hatchondo who sent
> this to CLOCC (I am
> quite probably wrong): Iban, can you advise?

Yes, it does come from me. The thing was that
graphic-char-p does not recognise accentuated chars
(among others). I though the simplest way to handle
this was by changing a little the default-translate
function. And I though using font-{min,max}-char in
case somebody tries to translate something  with a
font that define a very small set of symbol. But it
looks like a bad idea ?

> 
> How bad would it be to make OPEN-FONT call
> QUERY-FONT?  According to
> the libX11 man page, "The XLoadQueryFont function
> provides the most
> common way for accessing a font", which is some kind
> of evidence in
> favour of this being idiomatic X style

Sounds very good. 

Regards,
Iban.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com