Debian Codegraph @

texmf-dist/tex/generic/pgf/systemlayer/pgfsys-textures.def

raw
1 % Copyright 2019 by Till Tantau
2 %
3 % This file may be distributed and/or modified
4 %
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Public License.
7 %
8 % See the file doc/generic/pgf/licenses/LICENSE for more details.
9
10 \ProvidesFileRCS{pgfsys-textures.def}
11
12 \pgfutil@packagewarning
13 {pgfsys-textures.def}%
14 {This driver is deprecated and will be removed by the end of 2022.
15 Please switch to another TeX engine}
16
17 % Driver commands for textures driver
18
19
20 \def\pgfsys@invoke#1{\special{rawpostscript #1}}
21 \def\pgf@sys@postscript@header#1{\special{prepostscript #1}}
22 \def\pgf@sys@postscript@object#1{\special{rawpostscript #1}}
23
24
25 %
26 % Load common postscript commands:
27 %
28 \input pgfsys-common-postscript.def
29
30
31 %
32 % textures-specific stuff:
33 %
34
35 \def\pgfsys@beginpicture{%
36 \special{rawpostscript save}%
37 \special{rawpostscript save pgfgetcoords}%
38 \special{postscript}% here come the coordinates
39 \special{rawpostscript restore}%
40 \special{rawpostscript pgfbeginpicture}}
41 \def\pgfsys@endpicture{\special{rawpostscript restore}}
42 \def\pgfsys@hbox#1{%
43 \pgfsys@begin@idscope%
44 \pgfsys@invoke{save pgfbeginhbox}%
45 \wd#1=0pt%
46 \ht#1=0pt%
47 \dp#1=0pt%
48 \box#1%
49 \pgfsys@invoke{restore}%
50 \pgfsys@end@idscope%
51 }
52 \def\pgfsys@begininvisible{%
53 \special{rawpostscript gsave nulldevice}%
54 }
55 \def\pgfsys@endinvisible{%
56 \special{rawpostscript grestore}%
57 }
58 \def\pgfsys@color@unstacked#1{\special{rawpostscript \XC@usecolor{#1}}}
59
60 \def\pgfsys@imagesuffixlist{.epsi:.eps:.ps:}
61
62 \AtBeginDocument{
63 % Always present specials.
64 \special{prepostscript
65 /pgfsc{}bind def% stroke color is empty by default
66 /pgffc{}bind def% fill color is empty by default
67 /pgfe{moveto dup 0 rlineto exch 0 exch rlineto neg 0 rlineto closepath}bind def% rectangle
68 /pgfstr{stroke}bind def%
69 /pgffill{fill}bind def%
70 /pgfeofill{eofill}bind def%
71 /pgfw{setlinewidth}bind def% setlinewidth
72 /pgfgetcoords{/sps{globaldict begin /pgfgy exch def /pgfgx exch def
73 end pop pop}def/eps{}def userdict begin}bind def
74 /pgfbeginpicture{/pgfx pgfgx def /pgfy pgfgy def pgfx pgfy translate 1 1 72.27 72 div mul2 neg scale}bind def
75 /pgfbeginhbox{1 1 72 72.27 div mul2 neg scale
76 pgfx neg pgfy neg translate
77 pgffoa .setopacityalpha}bind def% save
78 /.setopacityalpha where {pop} {/.setopacityalpha{pop}def} ifelse % install .setopacityalpha
79 /.pgfsetfillopacityalpha{/pgffoa exch def
80 /pgffill{gsave pgffoa .setopacityalpha fill 1 .setopacityalpha
81 newpath fill grestore newpath}bind def
82 /pgfeofill{gsave pgffoa .setopacityalpha eofill1
83 .setopacityalpha newpath eofill grestore newpath}bind def}bind def
84 /.pgfsetstrokeopacityalpha{/pgfsoa exch def
85 /pgfstr{gsave pgfsoa .setopacityalpha stroke grestore newpath}bind def}bind def
86 /pgffoa 1 def
87 /pgfsoa 1 def
88 }
89 }
90
91 \endinput
92
93 %%% Local Variables:
94 %%% mode: latex
95 %%% End: