summaryrefslogtreecommitdiff
path: root/update-xfonts-traditional
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2012-01-09 22:21:48 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2012-01-09 22:21:48 +0000
commit5ab700e88a1462059c491eaba1b573d52f980d8d (patch)
treeb3f41f0d895059ac40b0b7269b03feac21e1756e /update-xfonts-traditional
parentb9008d6dd9bc8ef91f0080e8d73cdd0d14e9161c (diff)
do not mess with high-codepoint quotes
Diffstat (limited to 'update-xfonts-traditional')
-rwxr-xr-xupdate-xfonts-traditional10
1 files changed, 8 insertions, 2 deletions
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 $!;