groff before CVS: release 1.05
[s-roff.git] / ps / devps / symbolsl.ps
blobd384203e2c77fbc402d1f10c41b167c3c8b74b84
1 %!PS-Adobe-3.0 Resource-Font
2 %%DocumentNeededResources: font Symbol
4 % newfontname matrix oldfontname MakeTransformedFont
6 /MakeTransformedFont {
7         findfont dup maxlength dict begin
8                 {
9                         exch dup dup /FID ne exch /UniqueID ne and {
10                                 exch def
11                         } {
12                                 pop pop
13                         } ifelse
14                 } forall
15                 % first copy FontBBox
16                 /FontBBox 
17                 % FontBBox sometimes seems to have the executable
18                 % attribute set
19                 % so to get the array on the stack, we have to do this
20                 currentdict /FontBBox get
21                 4 array copy def
22                 % now transform it
23                 FontBBox aload pop
24                 4 index transform 4 2 roll
25                 4 index transform 4 2 roll
26                 FontBBox astore pop
27                 % matrix
28                 % now transform FontMatrix
29                 FontMatrix exch matrix concatmatrix
30                 /FontMatrix exch def
31                 dup /FontName exch def
32         currentdict end
33         definefont pop
34 } bind def
36 %%IncludeResource: font Symbol
38 /Symbol-Slanted
39 [.89 0.0 15.5 dup sin exch cos div .89 0.0 0.0]
40 /Symbol
41 MakeTransformedFont