Compare commits

...

2 Commits

Author SHA1 Message Date
Michele Guerini Rocco 940f93153b
add fonts with a free license 2019-05-15 23:49:59 +02:00
Michele Guerini Rocco 7902d1b5ff
fix perl warning 2019-05-15 23:48:50 +02:00
7 changed files with 3824 additions and 10 deletions

View File

@ -1,5 +1,5 @@
% A program to print the page footer, using the magic P function,
% which takes a string and a font.
(Tools for Publishing Source Code via OCR ) /Futura P
(Tools for Publishing Source Code via OCR ) /Beteckna P
(\343) /Symbol P % Copyright symbol
( 1997 Pretty Good Privacy, Inc.) /Futura P
( 1997 Pretty Good Privacy, Inc.) /Beteckna P

1281
ps/Beteckna-Bold.pfa Normal file

File diff suppressed because it is too large Load Diff

1446
ps/Beteckna.pfa Normal file

File diff suppressed because it is too large Load Diff

1088
ps/Inconsolata.pfa Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,10 @@
##set pageNumFont="Futura"
##set dirNameFont="Futura-Heavy"
##set fontsNeeded="${font} Symbol Futura Futura-Heavy"
##set pageNumFont="Beteckna"
##set dirNameFont="Beteckna-Bold"
##set fontsNeeded="${font} Beteckna Beteckna-Bold"
##set includeFontComments=<<"END"
%%IncludeResource: font ${font}
%%IncludeResource: font Symbol
%%IncludeResource: font Futura
%%IncludeResource: font Futura-Heavy
%%IncludeResource: font Beteckna
%%IncludeResource: font Beteckna-Bold
END
##if ${font} eq Courier
##set charShrinkFactor=0.93

View File

@ -34,7 +34,7 @@ $tempFile = "/tmp/psgen-$$";
# Parse arguments
$firstLogPage = $firstPhysPage = 0;
$productNumber = 1;
$font = "OCRB";
$font = "Inconsolata";
$autoEdit = 0;
while ($#ARGV >= 0 && $ARGV[0] =~ /^-/)
{

View File

@ -89,7 +89,7 @@ sub DoPrepass
return "" if /^###/;
s/\s*###.*//; # Strip comments
s/\${(\w+)}/&VarSubst($1, $skipFlag)/eg; # Do variable substitutions
s/\$\{(\w+)}/&VarSubst($1, $skipFlag)/eg; # Do variable substitutions
$_;
}