chiark
/
gitweb
/
~ian
/
xfonts-traditional.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bbbeaf
)
bdftopcf: special-case "no bdf data" return
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 25 Jan 2012 21:40:45 +0000
(21:40 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 25 Jan 2012 21:40:45 +0000
(21:40 +0000)
update-xfonts-traditional
patch
|
blob
|
history
diff --git
a/update-xfonts-traditional
b/update-xfonts-traditional
index 619e2faca737ba00378e20d854de4a11d050a679..fc750daa34a55f61222ab82897e6c2efe30693fe 100755
(executable)
--- a/
update-xfonts-traditional
+++ b/
update-xfonts-traditional
@@
-59,7
+59,9
@@
sub processbdf ($$$$) {
my ($w,$h,$xo,$yo,$y,$bitmap,$glyph);
my $modified=0;
%props = ();
+ my $anyinput=0;
while (<$inbdf>) {
+ $anyinput=1;
if ($state eq 'bitmap' && $y==$h) {
$glyph = uc $glyph;
$glyph =~ s/\;$//;
@@
-124,6
+126,8
@@
sub processbdf ($$$$) {
die $! if $inbdf->error;
die $! if $outbdf->error or !$outbdf->flush;
die unless $state eq 'idle';
+ return 'no bdf data' # also special cased in processpcfgz
+ if !$anyinput;
if ($modified) {
printf $logfile "%s: %d glyphs changed\n", $what, $modified
or die $!;