FVWM: making a shadowed title bar text

From: Riswick, J.G.A. van <J.G.A.v.Riswick_at_tue.nl>
Date: Sat, 17 Nov 2001 21:14:45 +0100

HI

I'm trying to make a 'shadowed' title bar text for fvwm2
which should look like so:

http://www.xs4all.nl/~josvanr/shadowtext.png

So I first want to draw the text in a dark color, and
then shifted over one pixel diagonally, draw it in a light color.
I tried to use the shadow gc for this:



    if(t->name != (char *)NULL) {

      XDrawString(dpy, t->title_w, sgc, hor_off+1,
                  t->title_font.y + 2, t->name, strlen(t->name));

      XDrawString(dpy, t->title_w, Scr.TitleGC, hor_off,
                  t->title_font.y + 1, t->name, strlen(t->name));
    }



(border.c, line 1337)

but it doesn't display correctly, the shadow gc seems to have
the wrong font:


http://www.xs4all.nl/~josvanr/oops.png



how should I correct this?


best regards

jos
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Nov 17 2001 - 14:14:46 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST