Control: retitle -1 xpdf: too many incorrect warning messages
Control: severity -1 minor
Hi,
On 2018-08-31 08:10:52 +0900, Masanori Goto wrote:
> Yes, xpdf shows many warnings, and adding "-q" command line option
> should make xpdf silent. Could you try it out? Thanks!
The -q option silences the warnings, but it is described as
Don't print any messages or errors.
i.e. it will also silence the errors, which is not acceptable.
Moreover, there shouldn't be a need to silence anything, as
the PDF file (generated by ps2pdf) appears to be correct;
in particular, atril and xournal don't complain.
The warning comes from xpdf/SplashOutputDev.cc
if (xMin - xt < t3Font->glyphX ||
yMin - yt < t3Font->glyphY ||
xMax - xt > t3Font->glyphX + t3Font->glyphW ||
yMax - yt > t3Font->glyphY + t3Font->glyphH) {
if (t3Font->validBBox) {
error(errSyntaxWarning, -1, "Bad bounding box in Type 3 glyph");
}
return;
}
Note that the values are double's, so that the comparisons may be
subject to floating-point rounding errors. I don't know whether
this is the reason here (I could try to look at this more closely),
but I suppose that this code could issue warnings only because of
that.
If this warning comes from a bug in xpdf, such a bug should be fixed.
--
Vincent Lefèvre <
vin...@vinc17.net> - Web: <
https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <
https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)