CLIM mail archive

[Prev][Next][Index][Thread]

Re: [spr6772] medium-text-style




   (clim:medium-text-style *standard-output*) yields a text style object with
     size NIL
     face NIL
     family NIL

   when called within the lisp listener of the CLIM demo package. I think it's only
   bad defaulting, but this result makes no sense in my eyes, since there is a
   standard text style assigned to the stream (otherwise, text output wouldn't make
   sense). 

   What is your opinion?

The behaviour is correct. I think you are confusing medium-text-style
and medium-default-text-style. The latter cannot have any components
as nil. You can setf medium-text-style of a medium to be a text style
with some fields missing and it will get the defaults by merging with
medium-default-text-style. By default medium-text-style has all
components as nil resulting in all rendering being done with
medium-default-text-style.

For more info see clim:medium-default-text-style on page 349 of the
clim documentation. See also chapter 14 - Text Styles in CLIM.

Hope this helps.

-----
Colin Meldrum, Franz Inc.	1995 University Avenue, Suite 275         
colin@Franz.COM (internet)	Berkeley, CA 94704                       
uunet!franz!colin (uucp)	Phone: (510) 548-3600; FAX: (510) 548-8253




0,,


Main Index | Thread Index