CLIM mail archive

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

Re: multiple-color drawing...




  Date: Mon, 24 Jan 1994 09:03 -0500
  From: Scott McKay <SWM@[128.81.253.18]>

      Date: Fri, 21 Jan 1994 22:10 EST
      From: Colin Meldrum <colin@franz.com>

      At the moment the best you can do is to find the bounding rectangle of the
      text you are going to draw, draw a filled rectangle in the text background
      and then draw the text in the text foreground. This works fine if you are
      drawing all your text explicitly with calls to draw-text - but it becomes
      tricky if your text output is produced by format onto a clim-stream within
      a filling-output for example.

  SURROUNDING-OUTPUT-WITH-BORDER already does the right thing.

You still have a problem with multi-line text if you only want the text
background to be drawn where the actual text glyphs are drawn (which I
believe was the implication in the original question). For this you'd have
to take the bounding rectangle of each individual line of text rather than
the outermost sequence output record.

Otherwise, I agree that SURROUNDING-OUTPUT-WITH-BORDER does what you want.

References:

Main Index | Thread Index