From: Luc Moulinier on
Hello !

Is there an equivalent to the xlib "XDrawImageString" function in Tk
library ? i.e. a function that draws a string with the foreground
color of the GC, and fills in the same go, the bounding box with the
GC background color ?

I tried with Tk_DrawTextLayout, but it ignores the GC backgound ...

(I'm looking for something faster than Tk_Fill3DRectangle +
Tk_DrawChars. I found the xlib XDrawImageString that does that I want,
but I don't find it's Tk coounterpart )

Thanks !
Luc
From: Joe English on
Luc Moulinier wrote:
>
> Is there an equivalent to the xlib "XDrawImageString" function in Tk
> library ? i.e. a function that draws a string with the foreground
> color of the GC, and fills in the same go, the bounding box with the
> GC background color ?
>
> I tried with Tk_DrawTextLayout, but it ignores the GC backgound ...

No, there is not, but perhaps there should be...

> (I'm looking for something faster than Tk_Fill3DRectangle +
> Tk_DrawChars. I found the xlib XDrawImageString that does that I want,
> but I don't find it's Tk coounterpart )

I think you'll find that speed is not much of an issue.
Correct rendering of antialiased fonts, however, can be.


--JE