bug-groff
[Top][All Lists]
Advanced

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

[bug #63808] configure gives incorrect information regarding pdf generat


From: G. Branden Robinson
Subject: [bug #63808] configure gives incorrect information regarding pdf generation
Date: Sat, 18 Feb 2023 16:25:23 -0500 (EST)

Follow-up Comment #29, bug #63808 (project groff):

Hi Deri,

My diagnosis in comment #28 appears to have been correct.

There is a problem with checking all 35 fonts in the default foundry for
gropdf in the "urw absent, gs present" scenario.

It seems the non-base-14 font descriptions are not being copied to
font/devpdf/

Here's some post-mortem info.


FAIL: font/devpdf/tests/check-default-foundry.sh
...
============================================================================
Testsuite summary for GNU roff 1.23.0.rc2.87-206dc
============================================================================
# TOTAL: 160
# PASS:  153
# SKIP:  4
# XFAIL: 2
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to http://savannah.gnu.org/bugs/?group=groff
============================================================================
make[3]: *** [Makefile:10433: test-suite.log] Error 1
make[3]: Leaving directory '/home/branden/BUILD/groff-1.23.0.rc2.87-206dc'
make[2]: *** [Makefile:10541: check-TESTS] Error 2
make[2]: Leaving directory '/home/branden/BUILD/groff-1.23.0.rc2.87-206dc'
make[1]: *** [Makefile:11898: check-am] Error 2
make[1]: Leaving directory '/home/branden/BUILD/groff-1.23.0.rc2.87-206dc'
make: *** [Makefile:11900: check] Error 2
uninstall is clean
$ cat font/devpdf/tests/check-default-foundry.sh
#!/bin/sh
#
# Copyright (C) 2022-2023 Free Software Foundation, Inc.
#
# This file is part of groff.
#
# groff is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# groff is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

# Ensure that groff's PDF device has font description files for the
# default (unnamed) foundry's PostScript Level 2 base 35 fonts, plus
# groff's EURO.
#
# These font descriptions should be available in any gropdf
# configuration because they can be copied from the devps font
# descriptions even if the URW fonts are not available.
#
# Another test script checks the "U" (URW) foundry.

devpdf_fontbuilddir="${abs_top_builddir:-.}"/font/devpdf

fonts='AB
ABI
AI
AR
BMB
BMBI
BMI
BMR
CB
CBI
CI
CR
EURO
HB
HBI
HI
HNB
HNBI
HNI
HNR
HR
NB
NBI
NI
NR
PB
PBI
PI
PR
S
TB
TBI
TI
TR
ZCMI
ZD'

fail=

for f in $fonts
do
    printf "checking for font description %s...\n" "$f" >&2
    if ! [ -f "$devpdf_fontbuilddir"/"$f" ]
    then
        echo FAILED >&2
        fail=yes
    fi
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 AB...
FAILED
checking for font description ABI...
FAILED
checking for font description AI...
FAILED
checking for font description AR...
FAILED
checking for font description BMB...
FAILED
checking for font description BMBI...
FAILED
checking for font description BMI...
FAILED
checking for font description BMR...
FAILED
checking for font description CB...
checking for font description CBI...
checking for font description CI...
checking for font description CR...
checking for font description EURO...
checking for font description HB...
checking for font description HBI...
checking for font description HI...
checking for font description HNB...
FAILED
checking for font description HNBI...
FAILED
checking for font description HNI...
FAILED
checking for font description HNR...
FAILED
checking for font description HR...
checking for font description NB...
FAILED
checking for font description NBI...
FAILED
checking for font description NI...
FAILED
checking for font description NR...
FAILED
checking for font description PB...
FAILED
checking for font description PBI...
FAILED
checking for font description PI...
FAILED
checking for font description PR...
FAILED
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 ZCMI...
FAILED
checking for font description ZD...
FAIL font/devpdf/tests/check-default-foundry.sh (exit status: 1)
$ rm font/devpdf/Foundry
$ make font/devpdf/Foundry
  GEN      font/devpdf/Foundry
$ rm font/devpdf/download 
$ make font/devpdf/download
  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@:/usr/share/ghostscript/9.53.3/Resource/Init:/usr/share/ghostscript/9.53.3/lib:/usr/share/ghostscript/9.53.3/Resource/Font:/usr/share/ghostscript/fonts:/var/lib/ghostscript/fonts:/usr/share/cups/fonts:/usr/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/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:/home/branden/BUILD/groff-1.23.0.rc2.87-206dc/font/devps:/home/branden/BUILD/groff-1.23.0.rc2.87-206dc/font/devps

$ gs -h
GPL Ghostscript 9.53.3 (2020-10-01)
Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3
PDF
Default output device: bbox
Available devices:
   alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp
   atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags bj10e bj10v bj10vh
   bj200 bjc600 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono bmp16 bmp16m
   bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 ccr cdeskjet cdj1600 cdj500
   cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono cdnj500 cfax
   chp2200 cif cljet5 cljet5c cljet5pr coslw2p coslwxl cups declj250 deskjet
   devicen dfaxhigh dfaxlow display dj505j djet500 djet500c dl2100 dnj650c
   epl2050 epl2050p epl2120 epl2500 epl2750 epl5800 epl5900 epl6100 epl6200
   eplcolor eplmono eps2write eps9high eps9mid epson epsonc escp escpage
   faxg3 faxg32d faxg4 fmlbp fmpr fpng fs600 gdi hl1240 hl1250 hl7x0
   hpdj1120c hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510
   hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c
   hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdjplus hpdjportable ibmpro
   ijs imagen inferno ink_cov inkcov itk24i itk38 iwhi iwlo iwlq jetp3852
   jj100 jpeg jpegcmyk jpeggray la50 la70 la75 la75plus laserjet lbp310
   lbp320 lbp8 lex2050 lex3200 lex5700 lex7000 lips2p lips3 lips4 lips4v
   lj250 lj3100sw lj4dith lj4dithp lj5gray lj5mono ljet2p ljet3 ljet3d ljet4
   ljet4d ljet4pjl ljetplus ln03 lp1800 lp1900 lp2000 lp2200 lp2400 lp2500
   lp2563 lp3000c lp7500 lp7700 lp7900 lp8000 lp8000c lp8100 lp8200c lp8300c
   lp8300f lp8400f lp8500c lp8600 lp8600f lp8700 lp8800c lp8900 lp9000b
   lp9000c lp9100 lp9200b lp9200c lp9300 lp9400 lp9500c lp9600 lp9600s
   lp9800c lps4500 lps6500 lq850 lxm3200 lxm5700m m8510 md1xMono md2k
   md50Eco md50Mono md5k mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24
   mj500c mj6000c mj700v2c mj8000c ml600 necp6 npdl nullpage oce9050 oki182
   oki4w okiibm oprp opvp paintjet pam pamcmyk32 pamcmyk4 pbm pbmraw pcl3
   pclm pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfimage24 pdfimage32
   pdfimage8 pdfwrite pdfwrite pdfwrite pgm pgmraw pgnm pgnmraw photoex
   picty180 pj pjetxl pjxl pjxl300 pkm pkmraw pksm pksmraw plan plan9bm
   planc plang plank planm plib plibc plibg plibk plibm png16 png16m png256
   png48 pngalpha pnggray pngmono pngmonod pnm pnmraw ppm ppmraw pr1000
   pr1000_4 pr150 pr201 ps2write psdcmyk psdcmyk16 psdcmykog psdrgb psdrgb16
   pwgraster pxlcolor pxlmono r4081 rinkj rpdl samsunggdi sj48 spotcmyk
   st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc
   tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw
   tiffpack tiffscaled tiffscaled24 tiffscaled32 tiffscaled4 tiffscaled8
   tiffsep tiffsep1 txtwrite uniprint xcf xes xpswrite
Search path:
   /usr/share/ghostscript/9.53.3/Resource/Init :
   /usr/share/ghostscript/9.53.3/lib :
   /usr/share/ghostscript/9.53.3/Resource/Font :
   /usr/share/ghostscript/fonts : /var/lib/ghostscript/fonts :
   /usr/share/cups/fonts : /usr/share/ghostscript/fonts :
   /usr/local/lib/ghostscript/fonts : /usr/share/fonts
Ghostscript is also using fontconfig to search for font files
For more information, see /usr/share/doc/ghostscript/Use.htm.
On debian system you may need to install ghostscript-doc package.
Please report bugs to bugs.ghostscript.com.
$ ls -1 font/devpdf/
CB
CBI
CI
CR
DESC
DESC.in
EURO
Foundry
Foundry.in
HB
HBI
HI
HR
S
TB
TBI
TI
TR
ZD
devpdf.am
download
enc
map
stamp
tests
util


It appears that with Debian's Ghostscript packages, these font files are
provided.


$ ls -1 /usr/share/ghostscript/9.53.3/Resource/Font/
C059-BdIta
C059-Bold
C059-Italic
C059-Roman
D050000L
NimbusMonoPS-Bold
NimbusMonoPS-BoldItalic
NimbusMonoPS-Italic
NimbusMonoPS-Regular
NimbusRoman-Bold
NimbusRoman-BoldItalic
NimbusRoman-Italic
NimbusRoman-Regular
NimbusSans-Bold
NimbusSans-BoldItalic
NimbusSans-Italic
NimbusSans-Regular
NimbusSansNarrow-Bold
NimbusSansNarrow-BoldOblique
NimbusSansNarrow-Oblique
NimbusSansNarrow-Regular
P052-Bold
P052-BoldItalic
P052-Italic
P052-Roman
StandardSymbolsPS
URWBookman-Demi
URWBookman-DemiItalic
URWBookman-Light
URWBookman-LightItalic
URWGothic-Book
URWGothic-BookOblique
URWGothic-Demi
URWGothic-DemiOblique
Z003-MediumItalic


The generated Foundry file looks like this.


# Foundry file

# Copyright (C) 2011-2020 Free Software Foundation, Inc.
#      Written by Deri James <deri@chuzzlewit.myzen.co.uk>
#
# This file is part of groff.
#
# groff is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# groff is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

#=======================================================================
#Foundry|Name|Search path
foundry||@urwfontsdir@:(gs):/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

# Enable the font description files for grops (generated from Adobe
# foundry font files) to be used with gropdf.  afmtodit must not be
# called with any flags.  URW fonts are substituted for Adobe fonts in
# the download file by default.  If you have Adobe Type 1 fonts, you can
# update the foundry search path above if necessary and replace the
# contents of the file fields below with their file names.

#Font|IsBase14|Flags|Map|Encoding|File(!file)...
AB|N||||URWGothic-Demi.t1!URWGothic-Demi!URWGothicL-Demi!a010015l.pfb
...


So URWGothic-Demi is definitely present, is in one of the directories reported
by "gs -h", and yet the special "(gs)" token in the Foundry file doesn't seem
to be leading gropdf to it.

I'll dig more into this.  Any eureka insights you have would of course be
welcome.  :)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63808>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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