diff options
author | Deri James <deri@chuzzlewit.myzen.co.uk> | 2022-07-08 14:16:55 +0100 |
---|---|---|
committer | Deri James <deri@chuzzlewit.myzen.co.uk> | 2022-07-08 14:16:55 +0100 |
commit | 272aaadb23f3ed44873c6acaaf42f41cdd9a11ba (patch) | |
tree | 151f494f8c9af2c4dbb7470fcee05326e0edbd64 /font | |
parent | 5c91d9b64a0a4ac05df30e412391582948aad90d (diff) | |
download | groff-git-272aaadb23f3ed44873c6acaaf42f41cdd9a11ba.tar.gz |
[devpdf]: Restore original path
* font/devpdf/util/BuildFoundries.pl: Some systems store .afm
files in a parallel directory to the Type 1 files, restore
original path after checking for parallel directory.
Diffstat (limited to 'font')
-rw-r--r-- | font/devpdf/util/BuildFoundries.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/font/devpdf/util/BuildFoundries.pl b/font/devpdf/util/BuildFoundries.pl index a0e498e6f..2ba5a7de2 100644 --- a/font/devpdf/util/BuildFoundries.pl +++ b/font/devpdf/util/BuildFoundries.pl @@ -306,11 +306,13 @@ sub LocateFile return("$p/$file"); } - if ($tryafm and $p=~s'type1/'afm/'i) + my $ap=$p; + + if ($tryafm and $ap=~s'type1/'afm/'i) { - if (-r "$p/$file") + if (-r "$ap/$file") { - return("$p/$file"); + return("$ap/$file"); } } } |