diff options
author | wl <wl> | 2012-09-20 07:48:28 +0000 |
---|---|---|
committer | wl <wl> | 2012-09-20 07:48:28 +0000 |
commit | 1be7153efcd1ccbfd4e10a1a4e4a7e1bc05ee2d5 (patch) | |
tree | 0340d5c8d90522c9f368cff8ef55aa91ec14ae13 | |
parent | e550448b35d01423af2060554b8684d70c14be43 (diff) | |
download | groff-1be7153efcd1ccbfd4e10a1a4e4a7e1bc05ee2d5.tar.gz |
[gropdf] Various minor fixes.
* font/devpdf/Foundry.in: Add font path to debian `gsfonts' package.
* font/devpdf/util/BuildFoundries.pl: Handle missing fonts in a more
sane way, do NOT abort the complete make run!
* src/devices/gropdf/gropdf: Accept papersize names (i.e. A4) as
either upper or lower case.
The -p (papersize) option should be length,width (currently reversed
- width,length)
* src/devices/gropdf/pdfmom.pl: Support use of GROFF_BIN_PATH.
-rw-r--r-- | ChangeLog | 18 | ||||
-rw-r--r-- | font/devpdf/Foundry.in | 3 | ||||
-rw-r--r-- | font/devpdf/util/BuildFoundries.pl | 2 | ||||
-rw-r--r-- | src/devices/gropdf/gropdf.pl | 4 | ||||
-rw-r--r-- | src/devices/gropdf/pdfmom.pl | 2 |
5 files changed, 23 insertions, 6 deletions
@@ -1,3 +1,19 @@ +2012-09-20 Deri James <deri@chuzzlewit.myzen.co.uk> + + [gropdf] Various minor fixes. + + * font/devpdf/Foundry.in: Add font path to debian `gsfonts' package. + + * font/devpdf/util/BuildFoundries.pl: Handle missing fonts in a more + sane way, do NOT abort the complete make run! + + * src/devices/gropdf/gropdf: Accept papersize names (i.e. A4) as + either upper or lower case. + The -p (papersize) option should be length,width (currently reversed + - width,length) + + * src/devices/gropdf/pdfmom.pl: Support use of GROFF_BIN_PATH. + 2012-09-11 Ralph Corderoy <ralph@inputplus.co.uk> Werner LEMBERG <wl@gnu.org> @@ -130,7 +146,7 @@ 2012-06-13 Deri James <deri@chuzzlewit.demon.co.uk> - * src/devices/gropdf/gropdf.pl: When using variable page + * src/devices/gropdf/gropdf.pl: When using variable page sizes (with \X'papersize ...') ensure final page is correct size. diff --git a/font/devpdf/Foundry.in b/font/devpdf/Foundry.in index f8a659b6..86d6432c 100644 --- a/font/devpdf/Foundry.in +++ b/font/devpdf/Foundry.in @@ -65,8 +65,7 @@ ZD|Y||||Dingbats!d050000l.pfb #====================================================================== #Foundry|Name|Searchpath -foundry|U|(gs):/opt/local/share/fonts/urw-fonts # the URW fonts delivered with ghostscript (may be different) - +foundry|U|(gs):/usr/share/fonts/type1/gsfonts :/opt/local/share/fonts/urw-fonts # the URW fonts delivered with ghostscript (may be different) #Define Flags for afmtodit r=-i 0 -m diff --git a/font/devpdf/util/BuildFoundries.pl b/font/devpdf/util/BuildFoundries.pl index 8f52fd1d..394a8b6e 100644 --- a/font/devpdf/util/BuildFoundries.pl +++ b/font/devpdf/util/BuildFoundries.pl @@ -36,7 +36,7 @@ LoadDownload("download"); LoadFoundry("Foundry"); WriteDownload("download"); -exit $warn; +exit 0; diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl index d8a21e25..0ed81a4a 100644 --- a/src/devices/gropdf/gropdf.pl +++ b/src/devices/gropdf/gropdf.pl @@ -207,7 +207,7 @@ LoadDesc(); my $unitwidth=$desc{unitwidth}; my $papersz=$desc{papersize}; -$papersz=$fpsz if $fpsz; +$papersz=lc($fpsz) if $fpsz; $env{FontHT}=0; $env{FontSlant}=0; @@ -232,7 +232,7 @@ if (substr($papersz,0,1) eq '/' and -r $papersz) if ($papersz=~m/([\d.]+)([cipP]),([\d.]+)([cipP])/) { - @defaultmb=@mediabox=(0,0,ToPoints($1,$2),ToPoints($3,$4)); + @defaultmb=@mediabox=(0,0,ToPoints($3,$4),ToPoints($1,$2)); } elsif (exists($ppsz{$papersz})) { diff --git a/src/devices/gropdf/pdfmom.pl b/src/devices/gropdf/pdfmom.pl index a03bc83d..8ba3c614 100644 --- a/src/devices/gropdf/pdfmom.pl +++ b/src/devices/gropdf/pdfmom.pl @@ -26,6 +26,8 @@ use strict; my @cmd; my $dev='pdf'; +$ENV{PATH}=$ENV{GROFF_BIN_PATH}.':'.$ENV{PATH} if exists($ENV{GROFF_BIN_PATH}); + while (my $c=shift) { if (substr($c,0,2) eq '-T') |