michael@0: #!/usr/bin/perl -w michael@0: michael@0: # Generates an SVG Font where each glyph (identified on stdin by four michael@0: # hex characters) consists of a bit pattern representing the Unicode michael@0: # code point it is the glyph for. michael@0: michael@0: use strict; michael@0: michael@0: print < michael@0: michael@0: michael@0: EOF michael@0: michael@0: while (<>) { michael@0: chomp; michael@0: next if /^\s*$/; michael@0: die unless /^[0-9A-Fa-f]{4}$/; michael@0: my $c = hex; michael@0: my $s = " \n"; michael@0: print $s; michael@0: } michael@0: michael@0: print < michael@0: michael@0: EOF