App-Music-PlayTab
view release on metacpan or search on metacpan
lib/App/Music/PlayTab/Output/PostScript/Preamble.pm view on Meta::CPAN
#! perl
# Author : Johan Vromans
# Created On : Tue Apr 19 16:25:30 2011
# Last Modified By: Johan Vromans
# Last Modified On: Sat Apr 19 21:49:47 2014
# Update Count : 49
# Status : Unknown, Use with caution!
package App::Music::PlayTab::Output::PostScript::Preamble;
use strict;
use warnings;
our $VERSION = "1.003";
sub preamble {
<<'EOD';
%!PS-Adobe-2.0
%%Pages: (atend)
%%DocumentFonts: Helvetica
%%EndComments
%%BeginProcSet: Symbols 0
/tabdict 50 dict def
tabdict begin
/m { moveto } bind def
/glyphwidth { % name *glyphwidth* wx wy
gsave nulldevice 0 0 moveto glyphshow currentpoint grestore
} bind def
/rshow {
dup stringwidth pop 2 div neg 0 rmoveto show
} bind def
/dim {
currentpoint
/MSyms findfont 7 scalefont setfont
1 8 rmoveto /Dim glyphshow moveto } def
/hdim {
currentpoint
/MSyms findfont 7 scalefont setfont
1 8 rmoveto /HDim glyphshow moveto } def
/minus {
currentpoint
/Symbol findfont 12 scalefont setfont
1 8 rmoveto (-) show moveto } def
/plus {
currentpoint
/Symbol findfont 12 scalefont setfont
1 8 rmoveto (+) show moveto } def
/delta {
/MSyms findfont 6 scalefont setfont
1 -3 rmoveto /Major glyphshow -1 3 rmoveto } def
/sharp {
/MSyms findfont sfsz scalefont setfont
sfsz 5 gt { 2 } { 1 } ifelse 2 rmoveto
/Sharp glyphshow
sfsz 5 gt { 2 } { 1 } ifelse neg -2 rmoveto } def
/flat {
/MSyms findfont sfsz scalefont setfont
sfsz 5 gt { 2 } { 1 } ifelse 2 rmoveto
/Flat glyphshow
%sfsz 5 gt { 2 } { 1 } ifelse neg -2 rmoveto
1 -2 rmoveto } def
/natural {
/MSyms findfont 20 scalefont setfont
2 0 rmoveto /Natural glyphshow -1 0 rmoveto } def
/addn {
/Helvetica findfont 12 scalefont setfont
0 -3 rmoveto show 0 3 rmoveto } def
/adds {
/MSyms findfont 5 scalefont setfont
1 -1 rmoveto /Sharp glyphshow 1 1 rmoveto
/Helvetica findfont 12 scalefont setfont
0 -3 rmoveto show 0 3 rmoveto } def
/addf {
/MSyms findfont 5 scalefont setfont
1 -1 rmoveto /Flat glyphshow 1 1 rmoveto
/Helvetica findfont 12 scalefont setfont
0 -3 rmoveto show 0 3 rmoveto } def
/root {
/Helvetica findfont 16 scalefont setfont
show
/sfsz 6 def
} def
/hroot {
/Helvetica findfont 12 scalefont setfont
show
/sfsz 4 def
} def
/slash {
/Helvetica findfont 16 scalefont setfont
2 -4 rmoveto (/) show } def
/bslash {
( run in 1.910 second using v1.01-cache-2.11-cpan-2398b32b56e )