Tgif Home
----
About Tgif
Current Release & Download
FAQ
Copyright Info
A Screendump of Tgif
Release History
Tools That Tgif Uses
Tools That Work with Tgif
Author of Tgif
Miscellaneous Info
----
 
Return to Tgif's Home Page
William Chia-Wei Cheng
(bill.cheng@usc.edu)
 

Tgif FAQ - ImageProc

 
How do you produce the blurred text shadow that is in the example screen shot?
  1. Add the following lines in my ~/.Xdefaults file:

    Tgif.AdditionalFonts: \n\
    lucida-medium-r-normal,iso8859-1,Lucida \n\
    lucida-bold-r-normal,iso8859-1,Lucida \n\
    lucida-medium-i-normal,iso8859-1,Lucida \n\
    lucida-bold-i-normal,iso8859-1,Lucida

    Tgif.FontSizes: 8 10 11 12 14 16 17 20 24 25 34 48 64 80 96

  2. Run tgif and select Lucida font with BoldItalic font style and 64 font size. Select AddColor() from the Edit Menu and enter "gray25". Select the text mode and type "Welcome". Save the file as "welcome.obj".

  3. Select the XPM export format by keeping typing <Meta><Cntrl>x until the export format icon show X11BM. Make sure tgif is in the "color export" mode (click on the Layout Menu, if you see BlkWhtPS, you are there, if you see ColorPS, select it). Select the "Welcome" text and select PrintSelectedObjs() from the File Menu. A file named "welcome.xpm" should have been generated. Select AddColor() from the Edit Menu again and enter "#0000ff" to change the color of the "Welcome" text to blue.

  4. Select ImportXPixmap() from the File Menu. Choose "welcome.xpm".

  5. With the XPM object selected, select Spread() from the ImageProc Menu. Enter 4 as the spread. Send the shadow to the back by selecting Back() from the Arrange Menu. Turn the snap off by selecting SnapOff() from the Layout Menu if it's not already off. Move the shadow behind the text so it looks like ahsdow.

  6. Notice that what you get is slightly different from what's shown in the screen shot since the grid points behind the shadow is not showing! This is because the background of the XPM object is not transparent. To make it transparent, manually edit "welcom.xpm" and change the first color from "White" to "None" before step (4) above.