]> git.donarmstrong.com Git - lilypond.git/blob - ps/lilyponddefs.ps
*** empty log message ***
[lilypond.git] / ps / lilyponddefs.ps
1 %!PS-Adobe-2.0: lilyponddefs.ps
2 % TODO:
3 %  * junk all magic, start-line/stop-line just: placebox @ x.y
4 %
5 % Functions for direct PostScript output
6
7 % /setgray { 1 add } bind def
8
9 % To let gs load fonts from builddir, do:
10 % export GS_LIB=$(pwd)/mf/out:/usr/share/texmf/fonts/type1/bluesky/cm
11
12
13 /set-ps-scale-to-lily-scale {
14         lily-output-units output-scale mul
15         lily-output-units output-scale mul scale
16 } bind def
17
18
19 /init-paper {
20         gsave
21         clippath pathbbox newpath
22         /paper-height exch def
23         /paper-width exch def pop pop pop
24         % FIXME
25         /top-margin 2 def
26         paper-width line-width sub 2 div /left-margin exch def
27         grestore
28 } bind def
29
30 /init-lilypond-parameters {
31         staff-line-thickness setlinewidth
32         staff-height init-paper
33 } bind def
34
35
36 % end lilyponddefs.ps