From: Ian Jackson Date: Sat, 7 Jan 2012 16:03:57 +0000 (+0000) Subject: wip X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/xfonts-traditional/commitdiff_plain/9a3a90e15194c705c999d1eb8b97bd8373152217 wip --- 9a3a90e15194c705c999d1eb8b97bd8373152217 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/bdf-filter b/bdf-filter new file mode 100644 index 0000000..a4e6220 --- /dev/null +++ b/bdf-filter @@ -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 index 0000000..37e50bf --- /dev/null +++ b/debian/control @@ -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 index 0000000..19b49cc --- /dev/null +++ b/debian/xfonts-traditional.triggers @@ -0,0 +1 @@ +interest /usr/share/fonts/X11