X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=xfonts-traditional.git;a=blobdiff_plain;f=update-xfonts-traditional;fp=update-xfonts-traditional;h=5e291333a2c17e30ec30b24ac8839a98399cfaf5;hp=e2fb14fb762f90a696bb07a60dcd647151a6b1e4;hb=5ab700e88a1462059c491eaba1b573d52f980d8d;hpb=b9008d6dd9bc8ef91f0080e8d73cdd0d14e9161c diff --git a/update-xfonts-traditional b/update-xfonts-traditional index e2fb14f..5e29133 100755 --- a/update-xfonts-traditional +++ b/update-xfonts-traditional @@ -21,6 +21,7 @@ our %foundrymap; our $verbose=0; our $reportfh; our $foundryinfo; +our %props; sub reportloaded { return unless $verbose; @@ -55,6 +56,7 @@ sub processbdf ($$$$) { my ($foundry,$font); my ($w,$h,$xo,$yo,$y,$bitmap,$glyph); my $modified=0; + %props = (); while (<$inbdf>) { if ($state eq 'bitmap' && $y==$h) { $glyph = uc $glyph; @@ -97,6 +99,10 @@ sub processbdf ($$$$) { $state='startchar'; $w=undef; } + if (($state eq 'idle' || $state eq 'startchar') && + m/^([A-Z_]+)\s+(.*\S)\s+$/) { + $props{$1}=$2; + } if ($state eq 'startchar') { if (m/^BBX\s+(\+?\d+)\s+(\+?\d+)\s+([-+]?\d+)\s+([-+]?\d+)\s+$/) { ($w,$h,$xo,$yo) = ($1,$2,$3,$4); @@ -156,13 +162,13 @@ sub loadfoundries () { sub processpcfgz ($$$$) { my ($inpcfgz,$outpcfgz,$logfile,$what) = @_; - + print $reportfh "processing $inpcfgz to $outpcfgz\n" if $verbose>=2; my $current = new IO::File $inpcfgz, '<' or die "$inpcfgz $!"; my ($usread,$uswrite); my ($reader,$writer); my @children; foreach my $proc (['gunzip'], ['pcf2bdf'], [], - ['bdftopcf'],['',qw(gzip -1)]) { + ['bdftopcf'],['',qw(gzip -1 -n)]) { my $isfinal = (@$proc && $proc->[0] eq ''); if (!$isfinal) { $reader = new IO::Handle or die $!;