diff -r 000000000000 -r 6474c204b198 layout/reftests/fonts/generate-bitpattern-font.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/layout/reftests/fonts/generate-bitpattern-font.pl Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,35 @@ +#!/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