Microsoft KB Archive/64234

Creating Character Shadowing Effects with PostScript

PSS ID Number: Q64234 Article last modified on 03-07-1997

=
========================================================= 3.00 3.01 3.02 4.00 5.00 MACINTOSH kbprint

= SUMMARY =

PostScript commands can be used to create shadowed characters in Microsoft Word documents. To put shadowed text at a 45 degree angle behind the normal text, do the following:

  On the page of your document where you want the shadowed text to appear, type the following PostScript commands: /inch {72 mul} def /pica {12 mul} def 0 792 translate /font /Helvetica-Bold def /pointsize 48 def /top 72 neg def /left 72 def /text (your text here) def left top translate font findfont pointsize scalefont setfont gsave [1 0 1 1 0 0] concat .8 setgray 0 0 moveto text show grestore 0 0 moveto text show Note: This shadow effect will be applied to whatever text you type in line 8 of the code. The text will begin 1 inch from the top and 1 inch from the left of the page.   Select the lines of PostScript code and apply the PostScript style to them by holding down the SHIFT key and choosing the PostScript style from the Styles box on the ruler. (If you are using Word 3.0, apply the PostScript style by holding down the SHIFT key and choosing Styles from the Format menu. Then select the PostScript style in the Styles dialog box.)   From the File menu, choose Print (make sure that the Print Hidden Text option is turned off). 

= MORE INFORMATION =

You can alter lines 4-8 to change the appearance of the shadowed text:


 * Line 4 sets the font and style (Helvetica Bold).
 * Line 5 sets the point size (48 point).
 * Lines 6 and 7 give the location on the page (72 points from top and from left).
 * Line 8 is where the text that is to be shadowed is typed.

You can also adjust the degree of shading (line 12) by changing the .8 to any number between 0 and 1 (where 1=Black and 0=White).

For more information on applying the PostScript style, query on the following words in the Microsoft Knowledge Base:

apply and PostScript and style

KBCategory: kbprint KBSubcategory: kbformat Additional reference words: 3.00 3.01 3.02 4.00 5.00 Post Script macword macword5 shading ====================================================================== ============================================================================= Copyright Microsoft Corporation 1997.