[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build system: devpdf/download regression

From: Ingo Schwarze
Subject: Re: build system: devpdf/download regression
Date: Wed, 22 Jun 2022 15:48:24 +0200

Hello Deri,

Deri wrote on Wed, Jun 22, 2022 at 01:07:34AM +0100:

> I've tracked down the problem. The configure flag --with-urw-fonts-dir
> was not being used when searching for fonts for the default foundry,
> just when searching for the U foundry. This is why the U- fonts were
> correctly populated but some of the default fonts errored. The ones
> which errored were the ones which were not part of the pdf base fonts,
> i.e. you can't use them without the font being included in the pdf.
> I have also included /usr/local/share/fonts/ghostscript as one of the
> static paths to search. As I discover different places that systems
> place the fonts I add them to the list.

Thanks for investigating and improving all that!

At , i've added some new files
built from the latest git including your improvements (as well as
some unrelated ones that Branden committed in the meantime):

Several warnings have gone away, and several additional font
descriptions appear to be built now (AB, ABI, AI, ...).

I think one issue remains.  When building from git, i do get the U-*
font description files.  But when building from a tarball using the
ports framework, i still don't: only A*, B*, H*, N*, P*; and Z*
descriptions appear now in addition to those i got beforem but no U-*.

Those files below
of which i did not upload new versions did not change.

> So you shouldn't need the --with-urw-fonts-dir flag any more.

To make things work without --with-urw-fonts-dir, i need the
additional patch shown below.  Otherwise, ./configure won't
find them, and BuildFoundries comes too late to fix that.
Do you think i should commit and push that additional patch?

It's hardly ideal to have this path written out verbatim at two
independent places: we just experienced how it *will* get out of
sync.  But let's improve one thing at a time.

> Please let me know if this fixes the problem. I noticed that you have 
> ghostscript 9.55 on your system, please could you do:-
> ls /usr/local/share/ghostscript/9.55.0/Resource/Init /usr/local/share/
> ghostscript/9.55.0/lib /usr/local/share/ghostscript/9.55.0/Resource/Font /usr/
> local/share/ghostscript/fonts /usr/local/share/fonts. 
> And send me the results. Sometimes they subtly change the names of the fonts 
> which ghostscript uses and I have to add the alternative names. If you can't 
> find the fonts it can mean they have baked the fonts in what they call %rom% 
> so they are not available as real files.

Paths containing "Resource/Init" or "Resource/Font" don't appear to exist
anywhere on my system.  Paths containing "Resource/Init" don't even
exist anywhere in the OpenBSD ports tree, and "Resource/Font" only
in the following place, but that seems unrelated to me:

  package: p5-PDF-API2-2.043
  pkgpath: textproc/p5-PDF-API2
  content: /usr/local/libdata/perl5/site_perl/PDF/API2/Resource/Font


diff --git a/m4/groff.m4 b/m4/groff.m4
index 8740ce10c..6f43f956e 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -288,10 +288,8 @@ AC_DEFUN([GROFF_URW_FONTS_PATH], [
 # Check availability of URW fonts in the search path given by 'gs -h'
-# supplemented with
-# /usr/share/fonts/type1/gsfonts/:/opt/local/share/fonts/urw-fonts
-# (where font/devpdf/ expects them), or in the custom
-# directory passed to 'configure'.
+# supplemented with the paths where font/devpdf/ expects them,
+# or in the custom directory passed to 'configure'.
@@ -301,8 +299,13 @@ AC_DEFUN([GROFF_URW_FONTS_CHECK], [
     AC_MSG_CHECKING([for URW fonts in Type 1/PFB format])
     _list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { 
found = 1 } /^[ ]*\// { print $'0' }'| tr : ' '`
-    _list_paths="$_list_paths /usr/share/fonts/type1/gsfonts/ \
-      /opt/local/share/fonts/urw-fonts/"
+    _list_paths="$_list_paths \
+      /usr/share/fonts/type1/gsfonts/ \
+      /usr/share/fonts/default/Type1/ \
+      /usr/share/fonts/default/Type1/adobestd35/ \
+      /usr/share/fonts/type1/urw-base35/ \
+      /opt/local/share/fonts/urw-fonts/ \
+      /usr/local/share/fonts/ghostscript/"
     if test -n "$urwfontsdir"
       _list_paths="$ _list_paths $urwfontsdir"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]