xfonts-traditional (1.3) unstable; urgency=low
+ * Tolerate fonts which make pcf2bdf crash (by default).
* Process multiple fonts in parallel.
* General improvements to handling of errors and unprocessed fonts.
our $reportfh;
our $foundryinfo;
our %props;
+our $tolerate_bad_fonts=1;
our $wanted_parallel;
sub reportloaded {
return !$st || $ch->{SigOK}{($st & ~128)};
};
+ if ($tolerate_bad_fonts &&
+ $r eq 'no bdf data' &&
+ $st_isok->($ch{'gunzip'}) &&
+ ($ch{'pcf2bdf'}{St} & ~128) == 6)
+ {
+ $r = "pcf2bdf failed ($ch{'pcf2bdf'}{St})";
+ print STDERR "warning: $r: skipping $inpcfgz\n";
+ $ch{'pcf2bdf'}{SigOK}{6} = 1;
+ }
foreach my $ch (@children) {
if (!$st_isok->($ch)) {
die "update-xfonts-traditional:".
'share-dir=s' => \$sharedir,
'verbose|v+' => \$verbose,
'j|parallel=i' => \$wanted_parallel,
+ 'tolerate-bad-fonts!' => \$tolerate_bad_fonts,
);
sub define_mode ($$) {
Use up to
.I cpus
cores for processing fonts. The default is all the cpus available.
+.TP
+\fB--no-tolerate-bad-fonts
+Treat bad input fonts (eg, ones for which pcf2bdf crashes, or ones
+with other problems) as a fatal error. Normally they just produce
+a warning.
.SH FILES
.TP
.B xfonts-traditional.done