wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Jan 2012 16:03:57 +0000 (16:03 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Jan 2012 16:03:57 +0000 (16:03 +0000)
.gitignore [new file with mode: 0644]
bdf-filter [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/xfonts-traditional.triggers [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..b25c15b
--- /dev/null
@@ -0,0 +1 @@
+*~
diff --git a/bdf-filter b/bdf-filter
new file mode 100644 (file)
index 0000000..a4e6220
--- /dev/null
@@ -0,0 +1,41 @@
+#!/usr/bin/perl -w
+use strict;
+
+our $state='begin';
+our ($w,$h,$xo,$yo,$y,$bitmap,$glyph);
+
+while (<>) {
+    if ($state eq 'bitmap' && $y==$h) {
+       $state='idle';
+    }
+    if ($state eq 'bitmap') {
+       m/^([0-9a-fA-F]+)\s+$/ or die $y;
+       length($1) == (($w+7 >> 3) << 1) or die "$1 $w";
+       $glyph .= "$1;";
+    }
+    if ($state eq 'begin' && m/^FOUNDRY\s+\"Misc\"\s+/i) {
+         s/misc/Trad/i;
+         $state='idle';
+    }
+      if ($state eq 'idle' && m/^STARTCHAR\s/) {
+         $state='startchar';
+         $w=undef;
+      }
+      if ($state eq 'startchar') {
+         if (m/^BBX\s+(\+?\d+)\s+(\+?\d+)\s+([-+]?\d+)\s+([-+]?\d+)\s+$/) {
+             ($w,$h,$xo,$yo) = ($1,$2,$3,$4);
+         }
+         if (m/^BITMAP\s+$/) {
+             die unless defined $w;
+             $y=0;
+             $glyph='';
+             $state='bitmap';
+         }
+      }
+             
+
+         if ($inchar) {
+         if (
+             $inchar
+
+      next unless $foundry;
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..37e50bf
--- /dev/null
@@ -0,0 +1,26 @@
+Package: xfonts-traditional
+Depends: xfonts-utils, pcf2bdf
+Description: Traditional fixed-with fonts for X
+ Provides "traditional" versions of fixed-width fonts.
+ .
+ These are a set of 6x13 fonts (including "fixed"), with foundry name
+ "trad" instead of "misc", with several glyphs replaced with earlier
+ versions from before Markus Kuhn's changes:
+  - balanced ` and '
+  - less tall [ ] ( ) { }
+  - centred *
+  - high ~
+  - traditional appearance of lower case a
+ .
+ These changes make the fonts compatible with the US-ASCII character
+ set.  (UTF-8 is not compatible with ASCII in its usage of the
+ backquote and some other characters.)  With these fonts, pre-2000
+ documents (including ASCII art and GNU manuals) will render
+ correctly.
+ .
+ Optionally, this package will edit your configuration to make the
+ default font "fixed" refer to the traditional font.
+ .
+ (This package does not actually contain the bulk of the font data;
+ rather, it automatically generates the required modified fonts for
+ each font you have installed.)
diff --git a/debian/xfonts-traditional.triggers b/debian/xfonts-traditional.triggers
new file mode 100644 (file)
index 0000000..19b49cc
--- /dev/null
@@ -0,0 +1 @@
+interest /usr/share/fonts/X11