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