Follow-up Comment #72, bug #63808 (project groff): [comment #68 comment #68:] > [comment #64 comment #64:] > > > > ...things look much better in the contrived "scenario 01" (gs present, urw absent). > It is only contrived for debian based distros, others include the ghostscript fonts as supplied from github.
Well, Solaris 10 and 11 don't supply them _in the file system_ and they fail the check-default-foundry.sh test as well. $ PATH=/usr/xpg4/bin:$PATH ./configure --prefix=$HOME --with-gs=/opt/csw/bin/gs checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out ... checking for gs version with good left sidebearing handling... got 9.15 (buggy) checking whether we are using the GNU C Library >= 2.1 or uClibc... (cached) no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating test-groff config.status: creating src/include/config.h config.status: executing depfiles commands GNU roff version 1.23.0.rc3.30-168d5 ---------------------------------------------------------------------- installation directory prefix : /export/home/gbranden command name prefix : g prefix used for macro packages : an an.ja an.ja_JP.PCK an.ja_JP.UTF-8 ansun ansun.ja ansun.ja_JP.PCK ansun.ja_JP.UTF-8 bib m s v vgrind C++ compiler and options : g++ -g -O2 use libgroff's memory allocator : no C compiler and options : gcc -g -O2 Perl interpreter version : 5.12.5 X11 support : disabled 'groff -l' uses print spooler : no use URW fonts for PDF output : no preconv can use uchardet library : no can build groff.dvi, groff.pdf : no tests can use poppler PDF tools : no ---------------------------------------------------------------------- configure: Buggy version of Ghostscript detected. Ghostscript versions 9.00 <= x < 9.54 suffer from a rendering glitch that affects the AT&T troff (and groff) special character '\(lh'; see <https://bugs.ghostscript.com/show_bug.cgi?id=703187>. If your version of Ghostscript has not been patched to fix this problem, you may need to work around it in groff documents you render for the PostScript (and, for tbl(1) tables, HTML) output devices. configure: URW fonts in Type 1/PFB format were not found. groff font description files for the URW fonts, used by the 'gropdf' output driver, will not be available. Use and embedding of fonts from the 'U' foundry in PDF documents generated by groff will not be possible. You can obtain the URW base 35 fonts from their GitHub project. As of this writing (2023-02-15), you can find them in the 'fonts' directory of the following archives (choose one). https://github.com/ArtifexSoftware/urw-base35-fonts/archive/refs/ tags/20200910.zip https://github.com/ArtifexSoftware/urw-base35-fonts/archive/refs/ tags/20200910.tar.gz You may wish to check for a newer release. https://github.com/ArtifexSoftware/urw-base35-fonts/releases By default, groff will look for these fonts in the search path shown by the 'gs -h' command (if available) and in several directories specified in font/devpdf/Foundry.in). You will need to 'make distclean' and re-run the 'configure' script after installing these fonts. Alternatively, you can pass the option '--with-urw-fonts-dir=DIR' to 'configure' to look for them in the directory DIR you specify. If found, the 'U' foundry will be available via the '-y' option to 'gropdf' (accessed via the 'groff' command with the option '-P -y'). configure: The uchardet library was not found. ... GEN font/devpdf/util/BuildFoundries GEN font/devpdf/download BuildFoundries: warning: line 33: groff font 'AB' will not be available for PDF output; unable to locate font file(s): URWGothic-Demi.t1, URWGothic-Demi, URWGothicL-Demi, a010015l.pfb BuildFoundries: warning: line 34: groff font 'ABI' will not be available for PDF output; unable to locate font file(s): URWGothic-DemiOblique.t1, URWGothic-DemiOblique, URWGothicL-DemiObli, a010035l.pfb BuildFoundries: warning: line 35: groff font 'AI' will not be available for PDF output; unable to locate font file(s): URWGothic-BookOblique.t1, URWGothic-BookOblique, URWGothicL-BookObli, a010033l.pfb BuildFoundries: warning: line 36: groff font 'AR' will not be available for PDF output; unable to locate font file(s): URWGothic-Book.t1, URWGothic-Book, URWGothicL-Book, a010013l.pfb BuildFoundries: warning: line 37: groff font 'BMB' will not be available for PDF output; unable to locate font file(s): URWBookman-Demi.t1, URWBookman-Demi, URWBookmanL-DemiBold, b018015l.pfb BuildFoundries: warning: line 38: groff font 'BMBI' will not be available for PDF output; unable to locate font file(s): URWBookman-DemiItalic.t1, URWBookman-DemiItalic, URWBookmanL-DemiBoldItal, b018035l.pfb BuildFoundries: warning: line 39: groff font 'BMI' will not be available for PDF output; unable to locate font file(s): URWBookman-LightItalic.t1, URWBookman-LightItalic, URWBookmanL-LighItal, b018032l.pfb BuildFoundries: warning: line 40: groff font 'BMR' will not be available for PDF output; unable to locate font file(s): URWBookman-Light.t1, URWBookman-Light, URWBookmanL-Ligh, b018012l.pfb BuildFoundries: notice: copied grops font CB BuildFoundries: notice: copied grops font CBI BuildFoundries: notice: copied grops font CI BuildFoundries: notice: copied grops font CR BuildFoundries: notice: copied grops font HB BuildFoundries: notice: copied grops font HBI BuildFoundries: notice: copied grops font HI BuildFoundries: warning: line 48: groff font 'HNB' will not be available for PDF output; unable to locate font file(s): NimbusSansNarrow-Bold.t1, NimbusSansNarrow-Bold, NimbusSanL-BoldCond, n019044l.pfb BuildFoundries: warning: line 49: groff font 'HNBI' will not be available for PDF output; unable to locate font file(s): NimbusSansNarrow-BoldOblique.t1, NimbusSansNarrow-BoldOblique, NimbusSansNarrow-BdOblique, NimbusSanL-BoldCondItal.t1, NimbusSanL-BoldCondItal, n019064l.pfb BuildFoundries: warning: line 50: groff font 'HNI' will not be available for PDF output; unable to locate font file(s): NimbusSansNarrow-Oblique.t1, NimbusSansNarrow-Oblique, NimbusSanL-ReguCondItal, n019063l.pfb BuildFoundries: warning: line 51: groff font 'HNR' will not be available for PDF output; unable to locate font file(s): NimbusSansNarrow-Regular.t1, NimbusSansNarrow-Regular, NimbusSanL-ReguCond, n019043l.pfb BuildFoundries: notice: copied grops font HR BuildFoundries: warning: line 53: groff font 'NB' will not be available for PDF output; unable to locate font file(s): C059-Bold.t1, C059-Bold, CenturySchL-Bold, c059016l.pfb BuildFoundries: warning: line 54: groff font 'NBI' will not be available for PDF output; unable to locate font file(s): C059-BdIta.t1, C059-BdIta, CenturySchL-BoldItal, c059036l.pfb BuildFoundries: warning: line 55: groff font 'NI' will not be available for PDF output; unable to locate font file(s): C059-Italic.t1, C059-Italic, CenturySchL-Ital, c059033l.pfb BuildFoundries: warning: line 56: groff font 'NR' will not be available for PDF output; unable to locate font file(s): C059-Roman.t1, C059-Roman, CenturySchL-Roma, c059013l.pfb BuildFoundries: warning: line 57: groff font 'PB' will not be available for PDF output; unable to locate font file(s): P052-Bold.t1, P052-Bold, URWPalladioL-Bold, p052004l.pfb BuildFoundries: warning: line 58: groff font 'PBI' will not be available for PDF output; unable to locate font file(s): P052-BoldItalic.t1, P052-BoldItalic, URWPalladioL-BoldItal, p052024l.pfb BuildFoundries: warning: line 59: groff font 'PI' will not be available for PDF output; unable to locate font file(s): P052-Italic.t1, P052-Italic, URWPalladioL-Ital, p052023l.pfb BuildFoundries: warning: line 60: groff font 'PR' will not be available for PDF output; unable to locate font file(s): P052-Roman.t1, P052-Roman, URWPalladioL-Roma, p052003l.pfb BuildFoundries: notice: copied grops font S BuildFoundries: notice: copied grops font TB BuildFoundries: notice: copied grops font TBI BuildFoundries: notice: copied grops font TI BuildFoundries: notice: copied grops font TR BuildFoundries: warning: line 66: groff font 'ZCMI' will not be available for PDF output; unable to locate font file(s): Z003-MediumItalic.t1, Z003-MediumItalic, URWChanceryL-MediItal, z003034l.pfb BuildFoundries: notice: copied grops font ZD BuildFoundries: notice: copied grops font EURO BuildFoundries: warning: line 69: The path(s) used for searching: @urwfontsdir@:%rom%Resource/Init:%rom%lib:/opt/csw/share/ghostscript/9.15/Resource/Init:/opt/csw/share/ghostscript/9.15/lib:/opt/csw/share/ghostscript/9.15/Resource/Font:/opt/csw/share/ghostscript/fonts:/opt/csw/share/ghostscript/fonts:/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:/export/home/gbranden/groff-1.23.0.rc3.30-168d5-sol11/font/devps:/export/home/gbranden/groff-1.23.0.rc3.30-168d5-sol11/font/devps GROFF doc/automake.pdf ... PASS: contrib/rfc1345/tests/rfc1345-smoke-test.sh GEN font/devpdf/tests/check-default-foundry.sh FAIL: font/devpdf/tests/check-default-foundry.sh GEN font/devpdf/tests/check-urw-foundry.sh SKIP: font/devpdf/tests/check-urw-foundry.sh PASS: src/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh ... ============================================================================ Testsuite summary for GNU roff 1.23.0.rc3.30-168d5 ============================================================================ # TOTAL: 163 # PASS: 155 # SKIP: 5 # XFAIL: 2 # FAIL: 1 # XPASS: 0 # ERROR: 0 ============================================================================ See ./test-suite.log Please report to http://savannah.gnu.org/bugs/?group=groff ============================================================================ ... $ cat font/devpdf/tests/check-default-foundry.sh #!/bin/sh # # Copyright (C) 2022-2023 Free Software Foundation, Inc. ... # devpdf_fontbuilddir="${abs_top_builddir:-.}"/font/devpdf ghostscript=/opt/csw/bin/gs wail () { echo ...FAILED >&2 fail=yes } ... for f in $mandatory_fonts do printf "checking for font description %s...\n" "$f" >&2 test -f "$devpdf_fontbuilddir"/"$f" || wail done if [ "$ghostscript" = no ] || [ "$ghostscript" = missing ] then echo "Ghostscript not available; skipping check for any further" \ "fonts in the default foundry" >&2 exit 77 # skip fi for f in $supplementary_fonts do printf "checking for font description %s...\n" "$f" >&2 test -f "$devpdf_fontbuilddir"/"$f" || wail done test -z "$fail" # vim:set ai et sw=4 ts=4 tw=72: $ cat font/devpdf/tests/check-default-foundry.sh.log checking for font description CB... checking for font description CBI... checking for font description CI... checking for font description CR... checking for font description HB... checking for font description HBI... checking for font description HI... checking for font description HR... checking for font description S... checking for font description TB... checking for font description TBI... checking for font description TI... checking for font description TR... checking for font description ZD... checking for font description AB... ...FAILED checking for font description ABI... ...FAILED checking for font description AI... ...FAILED checking for font description AR... ...FAILED ... This check fails and I think we can expect it to fail because BuildFoundries doesn't yet know how to determine what fonts Ghostscript has in its %rom%. I guess what is happening is that if the fonts are not found, BuildFoundries refuses to assume that the groff font descriptions of the beyond-base-14 fonts are reliable (and moreover, if a document actually used such fonts, the PDF standard requires that they be embedded). > As you stated this was a test for scenario 01 (gropdf in standard mode) I would expect a complete default foundry and that check-default-foundry.sh would pass but it looks like it was skipped. I'll return to that issue in a separate comment as it affects my contrived Debian scenario specifically. > Another issue is the configure missing urw-fonts message mentions that the paths mentioned in gs -h are searched but I believe you have now removed this from configure (correctly). Well, the message produced by 'configure' is vague. It says that "groff" looks for font files in the path reported by "gs -h". Really it is only gropdf that looks for them there, and that only of Ghostscript is installed. It was true until last week that the configure script scraped "gs -h" output as well. It no longer does. https://git.savannah.gnu.org/cgit/groff.git/commit/?id=b379382ea6f91dc2408973db8eb284d56255580b Further, the name of the Ghostscript interpreter is parameterized, so I should probably make the message respect other 'configure'd information accordingly. I don't feel these issues should gate 1.23.0 but they'd be nice to get in for a 1.23.1. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63808> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/